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 UMLGraph
createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layoutprotected java.util.Set<PresentationElement>
getSelected(DiagramPresentationElement diagramView)
Collects a set of selected layoutable presentation elements in a diagram-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
createGraph, 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 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
-
getSelected
@OpenApi protected java.util.Set<PresentationElement> getSelected(DiagramPresentationElement 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
-
-