Bug 100648 - Tool to normalize object distribution
Summary: Tool to normalize object distribution
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 14:38 UTC by Anton G. Alvedro
Modified: 2006-08-16 10:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton G. Alvedro 2005-03-02 14:38:29 UTC
Version:           1.3.92 (using KDE 3.2.3, compiled sources)
Compiler:          gcc version 3.3.3
OS:                Linux (i?86) release 2.2.14-5.0

As a complement to the alignment tools, it would be useful to have an additional one to adjust relative object spacing, for example:

equal horizontal spacing between object centroids.
equal horizontal spacing between object borders.
,and the same for vertical spacing

For example, if you have the following objects in a document:

o  o                       o
            o

by selecting them and using the first option you would get:

o                 o        o
         o

First and last objects remain in their initial position, and interior objects are moved to attain even distribution.
Comment 1 Daniel Calviño Sánchez 2006-08-15 17:12:12 UTC
The spacing between objects borders was added in Umbrello 1.5.3 (it was called alignment type distribute horizontally/vertically, see http://bugs.kde.org/67058#c8).

Spacing between objects centroids wasn't added. However, if this means space the center of the objects at the same distance one from each other, I can't see the benefit of it :)

For example:
Before          After spacing by centers
+-----+         +-----+
|  *  |         |  *  |
+-----+         +-----+
                +-----+
+-----+         |     |
|     |         |     |
|     |         |  *  |
|  *  |         |     |
|     |         |     |
|     |         +-----+
+-----+         +-----+
                |  *  |
+-----+         +-----+
|  *  |         
+-----+         
+-----+         +-----+
|  *  |         |  *  |
+-----+         +-----+

As you can see, it can lead to overlapping objects easily. Using spacing between object borders this won't happen.

So, could you please show an example where spacing between centers can be useful? :)
Comment 2 Anton G. Alvedro 2006-08-16 10:41:37 UTC
If you want to evenly distribute life lines in a seq diagram, for example.

By using borders you'd get:

     <->         <->

+---+   +-------+   +-----------+
+---+   +-------+   +-----------+
  |         |             |
  |         |             |

   <-------> <----------->

If class boxes are different in size to fit class/object names, lifelines will not be equally spaced.