Skip to main content
Version: 2.1.0

TypedDiagram   TypedDiagramModelSlot

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

  • visibility is default (unspecified), 'public', 'protected' or 'private'
  • cardinality is [0,1] (unspecified), [0,*] or [1,*]
  • \<identifier> is the name of declared model slot variable
  • \<diagramSpecification_path> addresses a DiagramSpecification

Configuration

PropertyType 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`](ShapeRole.html) : No documentation yet
  • ConnectorRole [`ConnectorRole`](ConnectorRole.html) : No documentation yet
  • DiagramRole [`DiagramRole`](DiagramRole.html) : No documentation yet

Behaviours

  • DropScheme [`DropScheme`](DropScheme.html) : No documentation yet
  • DrawRectangleScheme [`DrawRectangleScheme`](DrawRectangleScheme.html) : No documentation yet
  • LinkScheme [`LinkScheme`](LinkScheme.html) : No documentation yet
  • DiagramNavigationScheme [`DiagramNavigationScheme`](DiagramNavigationScheme.html) : No documentation yet

Edition actions

  • CreateDiagram [`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.
  • AddShape [`AddShape`](AddShape.html) : This edition primitive addresses the creation of a new shape in a 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

Javadoc

org.openflexo.technologyadapter.diagram.TypedDiagramModelSlot


See also

  • FreeDiagramModelSlot [`FreeDiagram`](FreeDiagramModelSlot.html) : This ModelSlot represents access to a Diagram without any DiagramSpecification conformance
  • CreateDiagram [`CreateDiagram`](CreateDiagram.html) : This edition primitive addresses the creation of a new diagram.