Menu

GraphModelEdit

Tom Swain
Attachments
nodeprops.png (21926 bytes)

Graphical Model Editing

As shown in the example below, the Graphical Definition Model parent object is a Canvas object that contains

* a Figure Gallery
* one or more Node definitions
* one or more Connection definitions
* zero or more Label definitions

Graphical Model Example

To add or replace the graphical node object, it is first necessary to add the desired item to the Figure Gallery:

  1. Right click the Figure Gallery branch of the Canvas resource.
  2. Select New Child->Figure Descriptor.
  3. Click on the newly added Figure Descriptor to select it and use the Properties view to give it a name.

Setting Figure Descriptor properties

Right click on the new Figure Descriptor and select a figure type from the New Child sub-menu. For example, Rounded Rectangle could be selected for use as a state chart node; or Polyline Connection could be selected for use as an arc. Attributes of the new figure type can be set in the Properties view. Node Figure Descriptors may require addition of Child Access objects to specify Labels to be displayed on the Node.

Figure Gallery showing Node and Connection subelement

Next, the desired new (or replacement) element can be added to the Canvas. Right click on the Canvas element and select a Node, Compartment, Connection, or Label from the New Child submenu. The new element is associated with a specific item in the Figure Gallery by setting the Figure attribute in the Properties view for the new element.

Node Properties view


Related

ESTA' Wiki: GmfNotes

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →