diagram keyword - modelint/flatland-model-diagram-editor GitHub Wiki

The diagram keyword specifies the kind of diagram you want to draw.

Syntax

diagram <diagram_type>

where <diagram_type> is a name that may contain spaces. Supported types are class, state machine, collaboration and domain.

NOTE: So far, only class and state machine has been tested so please refrain from using the other types until each has been tested. We’ll keep you posted here and in the git hub readme file.

Example

diagram state machine // We're drawing a state machine diagram!

Function

Specifies the type of diagram you are drawing. It should be consistent with the model file. So if the model file specifies a class diagram, the diagram type must be class.

Current support

Flatland currently supports the class and state machine diagram types only.

Developer extensions

Flatland was designed so that it can be extended to support a wide variety of node-connector diagram types if you supply your own model language/parser and a single python class to invoke the appropriate diagram node/connector creators.