Skip to main content
Version: 2.1.0

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`](ShapeRole.html) : No documentation yet
  • CreateDiagram [`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.
  • AddConnector [`AddConnector`](AddConnector.html) : This edition primitive addresses the creation of a new connector linking two shapes in a diagram
  • GraphicalAction [`GraphicalAction`](GraphicalAction.html) : No documentation yet