@OpenApiAll public class OrthogonalLinkDiagramLayouter extends AbstractLinkDiagramLayouter
Modifier and Type | Class and Description |
---|---|
(package private) class |
OrthogonalLinkDiagramLayouter.AutoPathRoutingSettings
Used when paths are layouted automatically
|
Constructor and Description |
---|
OrthogonalLinkDiagramLayouter()
Construct OrthogonalLinkDiagramLayouter
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyConstraintsForEdge(DiagramPresentationElement dpe,
UMLGraph graph,
y.base.EdgeMap spcMap,
y.base.EdgeMap tpcMap,
java.util.Collection<y.base.Edge> selectedEdges,
y.base.Edge edge,
y.layout.router.polyline.EdgeRouter oer)
Applies custom constraints for edge.
|
protected void |
configureSettings(OrthogonalRouterOptionsGroup options,
y.layout.router.polyline.EdgeRouter oer)
Configures initial edge router settings
|
protected UMLGraph |
createGraph(DiagramPresentationElement dpe,
AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layout
|
protected static PresentationElement |
getClient(UMLGraph graph,
y.base.Edge edge,
PathElement pathElement) |
protected static PresentationElement |
getSupplier(UMLGraph graph,
y.base.Edge edge,
PathElement pathElement) |
static boolean |
isSelfLoop(PathElement path) |
protected boolean |
layout(AbstractDiagramLayouterOptionsGroup opt,
DiagramPresentationElement dpe,
UMLGraph graph)
Layouts a diagram
|
protected void |
setEdgeConstraintMaps(DiagramPresentationElement dpe,
UMLGraph graph,
y.layout.router.polyline.EdgeRouter oer) |
clearOldRectangles, containsSelectedFromTheSameParent, getConnectedPaths, getSelected, placeLegendAndInfo, postprocessing, resizeFrameIfNecessary
createGraph, isSubgraphLayout, isTypeSupported, setSubgraphLayout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canLayout, drawLayoutResults, getOptionsID
public OrthogonalLinkDiagramLayouter()
protected UMLGraph createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
AbstractLinkDiagramLayouter
createGraph
in class AbstractLinkDiagramLayouter
dpe
- shapes and edges are taken from this diagramoptionsGroup
- layouter optionsprotected boolean layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
AbstractDiagramLayouter
layout
in class AbstractDiagramLayouter
opt
- layouter optionsdpe
- diagram to layoutgraph
- a constructed graph from the diagramprotected void setEdgeConstraintMaps(DiagramPresentationElement dpe, UMLGraph graph, y.layout.router.polyline.EdgeRouter oer)
protected void applyConstraintsForEdge(DiagramPresentationElement dpe, UMLGraph graph, y.base.EdgeMap spcMap, y.base.EdgeMap tpcMap, java.util.Collection<y.base.Edge> selectedEdges, y.base.Edge edge, y.layout.router.polyline.EdgeRouter oer)
dpe
- current diagramgraph
- current graphspcMap
- source port constraint maptpcMap
- target port constraint mapselectedEdges
- list for filling with edges that will be routededge
- edge to be routedprotected static PresentationElement getClient(UMLGraph graph, y.base.Edge edge, PathElement pathElement)
protected static PresentationElement getSupplier(UMLGraph graph, y.base.Edge edge, PathElement pathElement)
protected void configureSettings(OrthogonalRouterOptionsGroup options, y.layout.router.polyline.EdgeRouter oer)
options
- router option groupoer
- routerpublic static boolean isSelfLoop(@Nonnull PathElement path)