Class CompositeStructureDiagramLayouter
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.HierarchicDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.composite.CompositeStructureDiagramLayouter
-
- All Implemented Interfaces:
DiagramLayouter
,java.lang.Cloneable
- Direct Known Subclasses:
ClassDiagramLayouter
@OpenApi public class CompositeStructureDiagramLayouter extends HierarchicDiagramLayouter
Specialized layouter for composite diagram. It is used as a default layouter for composite structure diagrams and diagrams based on it.
-
-
Constructor Summary
Constructors Constructor Description CompositeStructureDiagramLayouter()
CompositeStructureDiagramLayouter(java.lang.String optionId)
Construct Composite layouter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UMLGraph
createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layoutprotected boolean
layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
Layouts a diagram-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
createGraph, getSelected, isTypeSupported
-
-
-
-
Constructor Detail
-
CompositeStructureDiagramLayouter
@OpenApi public CompositeStructureDiagramLayouter()
-
CompositeStructureDiagramLayouter
@OpenApi public CompositeStructureDiagramLayouter(java.lang.String optionId)
Construct Composite layouter- Parameters:
optionId
- activity diagram layouter options id
-
-
Method Detail
-
createGraph
@OpenApi protected UMLGraph createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layout- Overrides:
createGraph
in classAbstractDiagramLayouter
- Parameters:
dpe
- shapes and edges are taken from this diagramoptionsGroup
- layouter options- Returns:
- a created UMLGraph
-
layout
@OpenApi protected boolean layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
Description copied from class:AbstractDiagramLayouter
Layouts a diagram- Overrides:
layout
in classHierarchicDiagramLayouter
- Parameters:
opt
- layouter optionsdpe
- diagram to layoutgraph
- a constructed graph from the diagram- Returns:
- true if it was layouted successfully , false otherwise.
-
-