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
@OpenApi
@Deprecated
public abstract class AbstractLinkDiagramLayouter
extends AbstractDiagramLayouter
Deprecated.
Layout the diagram symbols in diagram.
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
layoutParameters
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLinkDiagramLayouter
(String optionId, boolean nodes, boolean paths) Deprecated.AbstractLinkDiagramLayouter
(String optionId, boolean nodes, boolean paths, boolean supportsSubgraph) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effect -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearOldRectangles
(BaseGraph graph) Deprecated.Clears old rectangles for shapes.protected boolean
Deprecated.Checks if selected elements have the same parent.protected BaseGraph
createGraph
(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup) Deprecated.static Set<PresentationElement>
getConnectedPaths
(AbstractDiagramPresentationElement diagramView) Deprecated.Gets the selected paths and any paths that are connected to selected shapes.getSelected
(AbstractDiagramPresentationElement diagramView) Deprecated.protected void
placeLegendAndInfo
(AbstractDiagramPresentationElement diagram, BaseGraph graph) Deprecated.Places diagram legends and infos.protected void
postprocessing
(BaseGraph graph, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Does some post-processing after layout.protected void
resizeOuterBoundaryIfNecessary
(AbstractDiagramPresentationElement dpe, BaseGraph graph, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Resizes outer bondary according to graphMethods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
afterLayout, afterLayout, canLayout, clone, createCommands, createGraph, createGraph, dispose, drawLayoutResults, getAnchoredPresentationElement, getDiagramLayouterAbortHandler, getLayoutParameter, getOptionsID, isTypeSupported, layout, layout, layoutGraph, preProcessing, setAnchoredPresentationElement, setDefaultLayoutParameters, setLabelConsiderationMode, setLayoutParameter
-
Constructor Details
-
AbstractLinkDiagramLayouter
@OpenApi @Deprecated(since="2024x Refresh3") public AbstractLinkDiagramLayouter(String optionId, boolean nodes, boolean paths) Deprecated.Construct AbstractLinkDiagramLayouter with the given argument.- Parameters:
optionId
- String.nodes
- boolean.paths
- boolean.
-
AbstractLinkDiagramLayouter
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public AbstractLinkDiagramLayouter(String optionId, boolean nodes, boolean paths, boolean supportsSubgraph) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effectConstruct AbstractLinkDiagramLayouter with the given argument.- Parameters:
optionId
- String.nodes
- boolean.paths
- boolean.supportsSubgraph
- boolean.
-
-
Method Details
-
createGraph
@OpenApi @Deprecated(since="2024x Refresh3") protected BaseGraph createGraph(AbstractDiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup) Deprecated.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
-
resizeOuterBoundaryIfNecessary
protected void resizeOuterBoundaryIfNecessary(AbstractDiagramPresentationElement dpe, BaseGraph graph, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Description copied from class:AbstractDiagramLayouter
Resizes outer bondary according to graph- Overrides:
resizeOuterBoundaryIfNecessary
in classAbstractDiagramLayouter
- Parameters:
dpe
- diagrammc
- macro command
-
postprocessing
protected void postprocessing(BaseGraph graph, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Description copied from class:AbstractDiagramLayouter
Does some post-processing after layout. Moves the graph, layouts swimlanes.- Overrides:
postprocessing
in classAbstractDiagramLayouter
- Parameters:
graph
- the graph data for post-processing
-
containsSelectedFromTheSameParent
Deprecated.Description copied from class:AbstractDiagramLayouter
Checks if selected elements have the same parent. if nothing is selected return true- Overrides:
containsSelectedFromTheSameParent
in classAbstractDiagramLayouter
-
getSelected
@OpenApi @Deprecated(since="2024x Refresh3") public Set<PresentationElement> getSelected(AbstractDiagramPresentationElement diagramView) Deprecated.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
-
getConnectedPaths
public static Set<PresentationElement> getConnectedPaths(AbstractDiagramPresentationElement diagramView) Deprecated.Gets the selected paths and any paths that are connected to selected shapes. Paths connected by other shape element on shape edge are also included- Parameters:
diagramView
- diagram- Returns:
- a set of path elements that should be processed
-
clearOldRectangles
Deprecated.Description copied from class:AbstractDiagramLayouter
Clears old rectangles for shapes. The old rectangle is used for link placement in movePath, MoveManager.- Overrides:
clearOldRectangles
in classAbstractDiagramLayouter
- Parameters:
graph
- layouted graph
-
placeLegendAndInfo
Deprecated.Description copied from class:AbstractDiagramLayouter
Places diagram legends and infos.- Overrides:
placeLegendAndInfo
in classAbstractDiagramLayouter
- Parameters:
diagram
- diagram
-
Layouting
class