Label Placement - modelint/flatland-model-diagram-editor GitHub Wiki
In the UML notation, short text notation is often displayed next to Stems. On a class diagram, for example, the text 1..*
signifies one to many, unconditional
, corresponding to the M mult
Stem Signification. In xUML, we place the {disjoint, complete}
UML tag next to any generalization relationship.
So a label is a short, fixed, unit of text positioned adjacent to a Stem for a given Diagram Notation.
We want to ensure that each such label is positioned at a consistent offset from both the Stem and attached Node face. This avoids any ugly text drawn on top of a Connector path or Node, thus the purpose of this specification.
Identifiers
- Stem position + Diagram type + Notation
Attributes
Default stem side
By default the Stem Label will appear on this side of the Stem axis in its vicinity. The user can override this default by specifying a Label flip. If the Stem is drawn vertically near the label, it will appear to the right or left and if the Stem is drawn horizontally the label will be above or below the stem. If a +
value is specified, it means to the right or above since the x or y axis increases in that direction.
Type: Plus Minus :: [ + | - ]
Vertical stem offset
If the Stem is drawn horizontally, this is the vertical space between the Label content rectangle and the Stem.
Type: Distance
Horizontal stem offset
If the Stem is drawn vertically, this is the horizontal space between the Label content rectangle and the Stem.
Type: Distance
Node face offset
The minimum (and default) distance between the Label content rectangle face parallel and closest to the Node face at the root end of the Stem.
Type: Distance