Skip to main content
Version: 2.99

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
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


Behaviours


Edition actions

  • CreateDiagram CreateDiagram : This edition primitive addresses the creation of a new diagram.
  • AddShape AddShape : This edition primitive addresses the creation of a new shape in a diagram.
  • AddConnector AddConnector : This edition primitive addresses the creation of a new connector linking two shapes in a diagram
  • GraphicalAction GraphicalAction : No documentation yet

Javadoc

org.openflexo.technologyadapter.diagram.TypedDiagramModelSlot