Interface DiagramLayouter
-
- All Known Implementing Classes:
AbstractDiagramLayouter
,AbstractLinkDiagramLayouter
,ActivityDiagramLayouter
,BusinessProcessDiagramLayouter
,CircularDiagramLayouter
,ClassDiagramLayouter
,CompositeStructureDiagramLayouter
,GridDiagramLayouter
,HierarchicDiagramLayouter
,OrderedHierarchicDiagramLayouter
,OrganicDiagramLayouter
,OrganicLinkDiagramLayouter
,OrthogonalDiagramLayouter
,OrthogonalLinkDiagramLayouter
,StateDiagramLayouter
,TreeDiagramLayouter
@OpenApi public interface DiagramLayouter
Layout diagram symbols in diagram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canLayout(DiagramPresentationElement dpe)
Checks is diagram can be layoutervoid
drawLayoutResults(UMLGraph graph)
Draws layout resultsjava.lang.String
getOptionsID()
boolean
layout(AbstractDiagramLayouterOptionsGroup options, DiagramPresentationElement dpe, com.nomagic.magicdraw.commands.MacroCommand mc)
Layouts diagram.
-
-
-
Method Detail
-
layout
boolean layout(AbstractDiagramLayouterOptionsGroup options, DiagramPresentationElement dpe, @CheckForNull com.nomagic.magicdraw.commands.MacroCommand mc)
Layouts diagram.- Parameters:
options
- defined layouter optionsdpe
- diagrammc
- macro command to add layouting to- Returns:
- true if layout was a success, false otherwise
-
canLayout
@OpenApi boolean canLayout(DiagramPresentationElement dpe)
Checks is diagram can be layouter- Parameters:
dpe
- diagram to layout- Returns:
- true if it can be layouted, false otherwise
-
drawLayoutResults
@OpenApi void drawLayoutResults(UMLGraph graph)
Draws layout results- Parameters:
graph
- current graph that is layouted
-
getOptionsID
@OpenApi java.lang.String getOptionsID()
- Returns:
- options ID
-
-