blob: 08231c48bfda0e29a8c9fc811cc10a1e48cf624f [file] [log] [blame]
= Automatic Layout for Association End Labels =
This plug-in proposes to layout labels (role and multiplicity) of an association automatically and in a "proper" way.
The figure below shows illustrates this label positioning performed by the plug-in with examples.
[[File:images/someExamples.png|frame|none|Examples of label positioning]]
== Underlying Principles ==
The following schema explains how the end labels of an association are positioned.
First of all the labels role and multiplicity are displayed both, with the role first. We call this succession of the 2 labels, the full label. The full label is positioned a little bit behind the associated element (a class, a data type...). However, the center of the full label must be on the segment linked to the associated element (hence the gradient calculation). Finally, if the full label intersects the associated element, the full label is then shifted to the left or to the right by the "length" of this intersection.
[[File:images/layoutPrinciples.png|frame|none|Layout Principles]]