Skip to main content
Version: 2.99

AddShape

AddShape This edition primitive addresses the creation of a new shape in a diagram.

Usage​

[DiagramShape <value> =]
AddShape(container=<container_path>[,options])

or

[DiagramShape <value> =]
DIAGRAM::AddShape(container=<container_path>[,options])

where

  • \<container_path> addresses a DiagramContainerElement<?>

Configuration​

PropertyType Required 
container  DiagramContainerElement<?>  yes
extendParentBoundsToHostThisShape  boolean  no

  • container : container for newly created shape
  • extendParentBoundsToHostThisShape : flag indicating if parent container should be extended in order to fully contain newly created shape

Examples​

myShape = AddShape(container=topLevel) in (myDiagram);

Creates a new shape in Diagram identified by ‘myDiagram’ expression, at top-level, and assign this new shape to ‘myShape’

myShape = DIAGRAM::AddShape(
container=myContainerShape,
extendParentBoundsToHostThisShape=true) in (myDiagram);

Creates a new shape in Diagram identified by ‘myDiagram’ expression, inside shape identified by ‘myContainerShape’ expression, and assign this new shape to ‘myShape’


Javadoc​

org.openflexo.technologyadapter.diagram.fml.editionaction.AddShape


See also​

  • ‎ShapeRole ShapeRole : No documentation yet
  • ‎CreateDiagram CreateDiagram : This edition primitive addresses the creation of a new diagram.
  • ‎AddConnector AddConnector : This edition primitive addresses the creation of a new connector linking two shapes in a diagram
  • ‎GraphicalAction GraphicalAction : No documentation yet