@OpenApiAll public class OrthogonalLinkDiagramLayouter extends AbstractLinkDiagramLayouter
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.Set<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 PresentationElement |
getClient(UMLGraph graph,
y.base.Edge edge,
PathElement pathElement) |
protected 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, createGraph, getConnectedPaths, getSelected, postprocessing, resizeFrameIfNecessary
createGraph, isSubgraphLayout, isTypeSupported, setSubgraphLayout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canLayout, drawLayoutResults, getOptionsID
public OrthogonalLinkDiagramLayouter()
protected 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.Set<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 PresentationElement getClient(UMLGraph graph, y.base.Edge edge, PathElement pathElement)
protected 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)