Class OrthogonalLinkDiagramLayouter
java.lang.Object
com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
com.nomagic.magicdraw.uml.symbols.layout.AbstractLinkDiagramLayouter
com.nomagic.magicdraw.uml.symbols.layout.OrthogonalLinkDiagramLayouter
- All Implemented Interfaces:
DiagramLayouter
,Cloneable
Link layouter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BaseGraph
createGraph
(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup) Constructs a graph for layoutprotected boolean
layout
(AbstractDiagramLayouterOptionsGroup opt, AbstractDiagramPresentationElement dpe, BaseGraph graph) Layouts a diagramMethods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractLinkDiagramLayouter
getSelected
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
isTypeSupported
-
Constructor Details
-
OrthogonalLinkDiagramLayouter
@OpenApi public OrthogonalLinkDiagramLayouter()
-
-
Method Details
-
createGraph
@OpenApi protected BaseGraph createGraph(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup) Description copied from class:AbstractLinkDiagramLayouter
Constructs a graph for layout- Overrides:
createGraph
in classAbstractLinkDiagramLayouter
- Parameters:
dpe
- shapes and edges are taken from this diagramoptionsGroup
- layouter options- Returns:
- a created UMLGraph
-
layout
@OpenApi protected boolean layout(AbstractDiagramLayouterOptionsGroup opt, AbstractDiagramPresentationElement dpe, BaseGraph graph) Description copied from class:AbstractDiagramLayouter
Layouts a diagram- Specified by:
layout
in classAbstractDiagramLayouter
- Parameters:
opt
- layouter optionsdpe
- diagram to layoutgraph
- a constructed graph from the diagram- Returns:
- true if it was layouted successfully , false otherwise.
-