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
| Property | Type | Required |
|---|---|---|
container | DiagramContainerElement<?> | yes |
extendParentBoundsToHostThisShape | boolean | no |
container: container for newly created shapeextendParentBoundsToHostThisShape: 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.html) : No documentation yet
[`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.
[`AddConnector`](AddConnector.html) : This edition primitive addresses the creation of a new connector linking two shapes in a diagram
[`GraphicalAction`](GraphicalAction.html) : No documentation yet