TypedDiagram 
This ModelSlot represents access to a Diagram conform to a DiagramSpecification
Such 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 |
isReadOnly | boolean | no |
isRequired | boolean | no |
paletteElementBindings | List<FMLDiagramPaletteElementBinding> | no |
diagramSpecification: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`](ShapeRole.html) : No documentation yet
[`ConnectorRole`](ConnectorRole.html) : No documentation yet
[`DiagramRole`](DiagramRole.html) : No documentation yet
Behaviours
[`DropScheme`](DropScheme.html) : No documentation yet
[`DrawRectangleScheme`](DrawRectangleScheme.html) : No documentation yet
[`LinkScheme`](LinkScheme.html) : No documentation yet
[`DiagramNavigationScheme`](DiagramNavigationScheme.html) : No documentation yet
Edition actions
[`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.
[`AddShape`](AddShape.html) : This edition primitive addresses the creation of a new shape in a 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
Javadoc
org.openflexo.technologyadapter.diagram.TypedDiagramModelSlot
See also
[`FreeDiagram`](FreeDiagramModelSlot.html) : This ModelSlot represents access to a Diagram without any DiagramSpecification conformance
[`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.