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 voidclearOldRectangles(BaseGraph graph) Deprecated.Clears old rectangles for shapes.protected booleanDeprecated.Checks if selected elements have the same parent.protected BaseGraphcreateGraph(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 voidplaceLegendAndInfo(AbstractDiagramPresentationElement diagram, BaseGraph graph) Deprecated.Places diagram legends and infos.protected voidpostprocessing(BaseGraph graph, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Does some post-processing after layout.protected voidresizeOuterBoundaryIfNecessary(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:
createGraphin 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:AbstractDiagramLayouterResizes outer bondary according to graph- Overrides:
resizeOuterBoundaryIfNecessaryin 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:AbstractDiagramLayouterDoes some post-processing after layout. Moves the graph, layouts swimlanes.- Overrides:
postprocessingin classAbstractDiagramLayouter- Parameters:
graph- the graph data for post-processing
-
containsSelectedFromTheSameParent
Deprecated.Description copied from class:AbstractDiagramLayouterChecks if selected elements have the same parent. if nothing is selected return true- Overrides:
containsSelectedFromTheSameParentin classAbstractDiagramLayouter
-
getSelected
@OpenApi @Deprecated(since="2024x Refresh3") public Set<PresentationElement> getSelected(AbstractDiagramPresentationElement diagramView) Deprecated.Description copied from class:AbstractDiagramLayouterCollects a set of selected layoutable presentation elements in a diagram- Overrides:
getSelectedin 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:AbstractDiagramLayouterClears old rectangles for shapes. The old rectangle is used for link placement in movePath, MoveManager.- Overrides:
clearOldRectanglesin classAbstractDiagramLayouter- Parameters:
graph- layouted graph
-
placeLegendAndInfo
Deprecated.Description copied from class:AbstractDiagramLayouterPlaces diagram legends and infos.- Overrides:
placeLegendAndInfoin classAbstractDiagramLayouter- Parameters:
diagram- diagram
-
Layoutingclass