Connector 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
- Connector
Attributes
Name
The user supplied name to be drawn on or near the Connector axis. Type: Text
Bend
If the Connector is bent, we proceed clockwise from the first attached Node starting from 1 for each bend. The term โbentโ can be applied liberally. In the case of a Binary Connector, we really mean Bend. With a Tree Connector, the quantity can represent each Branch.
The Name will then be placed at the center of the line segment of this Bend.
In the case of a non-bent Connector, this value is ignored
Type: Count
Side
For a horizontal Connector, this will be above or below and for a vertical Connector 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