Node Type - modelint/flatland-model-diagram-editor GitHub Wiki

Specifies characteristics common to all Nodes of a given type. A class node, for example, has three compartments, sharp corners a certain border style, etc. For now, to support a different visual style for a class node, let’s say, you would need to define a new node/diagram type combination (UML class on a UML class diagram type vs. Shlaer-Mellor class on a Shlaer-Mellor class diagram type), for example). Since, most diagrams we are considering have notational variation in the Connector Types and not the Node Types, we’re baking in the visual characteristics of a Node Type for now and making it flexible for Connector Types.

Identifiers

  1. Name + Diagram type

Attributes

Name

A name like “class”, “state”, “imported class”, “domain”, etc.

Type: Node Type Name, based on Name

Corner Rounding

?? Not sure about this one (from class diagram, not documented)

Type: Rounding

Compartments

The number of UML style text compartments visible.

Type: Count1 `:: Count > 0, based on integer

Rounded

Whether or not all four node corners are rounded

Type: Boolean

Default size

Initial assumption about a Node size.

Type: Rect Size

Max Size

Node may not be drawn larger than this size.

Type: Rect Size

Corner margin

The minimum distance permitted between a Stem Root end and the nearest Node corner. The intention it to prevent lines attaching on or very close to a Node’s corner which looks glitchy.

Type: Distance