@OpenApiAll public abstract class AbstractLinkDiagramLayouter extends AbstractDiagramLayouter
Constructor and Description |
---|
AbstractLinkDiagramLayouter(java.lang.String optionId,
boolean nodes,
boolean paths,
boolean supportsSubgraph)
Construct AbstractLinkDiagramLayouter with the given argument.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearOldRectangles(UMLGraph graph)
Clears old rectangles for shapes.
|
protected boolean |
containsSelectedFromTheSameParent(DiagramPresentationElement dpe)
Checks if selected elements have the same parent.
|
protected UMLGraph |
createGraph(DiagramPresentationElement dpe,
AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layout
|
static java.util.Set<PresentationElement> |
getConnectedPaths(DiagramPresentationElement diagramView)
Gets the selected paths and any paths that are connected to selected shapes.
|
protected java.util.Set<PresentationElement> |
getSelected(DiagramPresentationElement diagramView)
Collects a set of selected presentation elements in a diagram
|
protected void |
placeLegendAndInfo(DiagramPresentationElement diagram,
UMLGraph graph)
Places diagram legends and infos.
|
protected void |
postprocessing(UMLGraph graph,
com.nomagic.magicdraw.commands.MacroCommand mc)
Does some post processing after layout.
|
protected void |
resizeFrameIfNecessary(DiagramPresentationElement dpe,
UMLGraph graph,
com.nomagic.magicdraw.commands.MacroCommand mc)
Resizes diagram frame if there are no elements selected.
|
createGraph, isSubgraphLayout, isTypeSupported, layout, setSubgraphLayout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canLayout, drawLayoutResults, getOptionsID
public AbstractLinkDiagramLayouter(java.lang.String optionId, boolean nodes, boolean paths, boolean supportsSubgraph)
optionId
- String.nodes
- boolean.paths
- boolean.supportsSubgraph
- boolean.@OpenApi protected UMLGraph createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
createGraph
in class AbstractDiagramLayouter
dpe
- shapes and edges are taken from this diagramoptionsGroup
- layouter optionsprotected void resizeFrameIfNecessary(DiagramPresentationElement dpe, UMLGraph graph, com.nomagic.magicdraw.commands.MacroCommand mc)
AbstractDiagramLayouter
resizeFrameIfNecessary
in class AbstractDiagramLayouter
dpe
- diagrammc
- macro commandprotected void postprocessing(UMLGraph graph, com.nomagic.magicdraw.commands.MacroCommand mc)
AbstractDiagramLayouter
postprocessing
in class AbstractDiagramLayouter
graph
- the graph data for post processingprotected boolean containsSelectedFromTheSameParent(DiagramPresentationElement dpe)
AbstractDiagramLayouter
containsSelectedFromTheSameParent
in class AbstractDiagramLayouter
protected java.util.Set<PresentationElement> getSelected(DiagramPresentationElement diagramView)
AbstractDiagramLayouter
getSelected
in class AbstractDiagramLayouter
diagramView
- the diagram that elements were selected inpublic static java.util.Set<PresentationElement> getConnectedPaths(DiagramPresentationElement diagramView)
diagramView
- diagramprotected void clearOldRectangles(UMLGraph graph)
AbstractDiagramLayouter
clearOldRectangles
in class AbstractDiagramLayouter
graph
- layouted graphprotected void placeLegendAndInfo(DiagramPresentationElement diagram, UMLGraph graph)
AbstractDiagramLayouter
placeLegendAndInfo
in class AbstractDiagramLayouter
diagram
- diagram