TypedDiagram
This ModelSlot represents access to a Diagram conform to a DiagramSpecificationSuch diagram refers to a diagram metamodel which is composed of a example diagram and a collection of palettes both encoding template shapes and connectors
Usage
[visibility] [cardinality] Diagram <identifier>
with TypedDiagram(diagramSpecification=<diagramSpecification_path>[,options]);
or
[visibility] [cardinality] Diagram <identifier>
with DIAGRAM::TypedDiagram(diagramSpecification=<diagramSpecification_path>[,options]);
where
visibilityis default (unspecified), 'public', 'protected' or 'private'cardinalityis [0,1] (unspecified), [0,*] or [1,*]- \<identifier> is the name of declared model slot variable
- \<diagramSpecification_path> addresses a
DiagramSpecification
Configuration
| Property | Type | Required |
|---|---|---|
diagramSpecification | DiagramSpecification | yes |
container | ? | no |
isReadOnly | boolean | no |
isRequired | boolean | no |
paletteElementBindings | List<FMLDiagramPaletteElementBinding> | no |
diagramSpecification:container:isReadOnly:isRequired:paletteElementBindings:
Examples
Diagram myDiagram with DIAGRAM::TypedDiagram(
diagramSpecification = myDiagramSpecification,
paletteElementBindings = {
FMLDiagramPaletteElementBinding:(elementId="MyPaletteElement",
dropAction="MyConcept.drop()",overridingGR=RED_SHAPE2),
FMLDiagramPaletteElementBinding:(elementId="MyPaletteElement2",dropAction="MyConcept.drop()")
});
Declares a model slot called 'myDiagram' with resulting type 'Diagram', realized through the 'TypedDiagram' model slot, conform to 'myDiagramSpecification' and specified palette element bindings
Roles
-
ShapeRole : No documentation yet -
ConnectorRole : No documentation yet -
DiagramRole : No documentation yet
Behaviours
-
DropScheme : No documentation yet -
DrawRectangleScheme : No documentation yet -
LinkScheme : No documentation yet -
DiagramNavigationScheme : No documentation yet
Edition actions
-
CreateDiagram : This edition primitive addresses the creation of a new diagram. -
AddShape : This edition primitive addresses the creation of a new shape in a diagram. -
AddConnector : This edition primitive addresses the creation of a new connector linking two shapes in a diagram -
GraphicalAction : No documentation yet
Javadoc
org.openflexo.technologyadapter.diagram.TypedDiagramModelSlot