Class AbstractLinkDiagramLayouter
java.lang.Object
com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
com.nomagic.magicdraw.uml.symbols.layout.AbstractLinkDiagramLayouter
- All Implemented Interfaces:
DiagramLayouter
,Cloneable
- Direct Known Subclasses:
OrganicLinkDiagramLayouter
,OrthogonalLinkDiagramLayouter
Layout the diagram symbols in diagram.
-
Constructor Summary
ConstructorDescriptionAbstractLinkDiagramLayouter
(String optionId, boolean nodes, boolean paths) Construct AbstractLinkDiagramLayouter with the given argument.AbstractLinkDiagramLayouter
(String optionId, boolean nodes, boolean paths, boolean supportsSubgraph) Deprecated.supportsSubgraph has no effect -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseGraph
createGraph
(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup) Constructs a graph for layoutgetSelected
(AbstractDiagramPresentationElement diagramView) Collects a set of selected layoutable presentation elements in a diagramMethods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
isTypeSupported, layout
-
Constructor Details
-
AbstractLinkDiagramLayouter
Construct AbstractLinkDiagramLayouter with the given argument.- Parameters:
optionId
- String.nodes
- boolean.paths
- boolean.
-
AbstractLinkDiagramLayouter
@OpenApi @Deprecated public AbstractLinkDiagramLayouter(String optionId, boolean nodes, boolean paths, boolean supportsSubgraph) Deprecated.supportsSubgraph has no effectConstruct AbstractLinkDiagramLayouter with the given argument.- Parameters:
optionId
- String.nodes
- boolean.paths
- boolean.supportsSubgraph
- boolean.
-
-
Method Details
-
createGraph
@OpenApi protected BaseGraph createGraph(AbstractDiagramPresentationElement 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
-
getSelected
@OpenApi public Set<PresentationElement> getSelected(AbstractDiagramPresentationElement diagramView) Description copied from class:AbstractDiagramLayouter
Collects a set of selected layoutable presentation elements in a diagram- Overrides:
getSelected
in classAbstractDiagramLayouter
- Parameters:
diagramView
- the diagram that elements were selected in- Returns:
- the selected paths and any paths that are connected to selected shapes. Paths connected by other shape element on shape edge are also included
-