Stem Name - modelint/flatland-model-diagram-editor GitHub Wiki
The user may supply a name for any or all Connectors in a Diagram. On a class diagram, for example, the user would specify names like R2, R35, etc. for each relationship Connector.
Identifiers
- Stem + Connector
Attributes
End
The end of the Stem where the name is placed.
Type: [ root | vine ]
Name
The user supplied name to be drawn on or near the Stem. The text will be right or left aligned depending on the location relative to the Stem.
Type: Text
Side
For a horizontal Stem, this will be above or below and for a vertical Stem it will be left or right. Since both right and above are at increasing coordinate values along one coordinate axis, we can just use a positive or negative sign to indicate the Side. Positive (1) means above or right while negative (-1) is the other side.
Type: [ 1 | -1 ]
as an integer value
Location
The coordinates of the lower left text bounding box.
Type: Position
Size
The dimensions of the text bounding box.
Type: Rect Size