Class AbstractLinkDiagramLayouter
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.AbstractLinkDiagramLayouter
-
- All Implemented Interfaces:
DiagramLayouter
,java.lang.Cloneable
- Direct Known Subclasses:
OrganicLinkDiagramLayouter
,OrthogonalLinkDiagramLayouter
@OpenApi public abstract class AbstractLinkDiagramLayouter extends AbstractDiagramLayouter
Layout the diagram symbols in diagram.
-
-
Constructor Summary
Constructors Constructor Description AbstractLinkDiagramLayouter(java.lang.String optionId, boolean nodes, boolean paths)
Construct AbstractLinkDiagramLayouter with the given argument.AbstractLinkDiagramLayouter(java.lang.String optionId, boolean nodes, boolean paths, boolean supportsSubgraph)
Deprecated.supportsSubgraph has no effect
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseGraph
createGraph(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layoutjava.util.Set<PresentationElement>
getSelected(AbstractDiagramPresentationElement diagramView)
Collects a set of selected layoutable presentation elements in a diagram-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
isTypeSupported, layout
-
-
-
-
Constructor Detail
-
AbstractLinkDiagramLayouter
@OpenApi public AbstractLinkDiagramLayouter(java.lang.String optionId, boolean nodes, boolean paths)
Construct AbstractLinkDiagramLayouter with the given argument.- Parameters:
optionId
- String.nodes
- boolean.paths
- boolean.
-
AbstractLinkDiagramLayouter
@OpenApi @Deprecated public AbstractLinkDiagramLayouter(java.lang.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 Detail
-
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 java.util.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
-
-