|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.AbstractLayoutStage y.layout.router.SnapOuterPortsToNodeBorderStage
public class SnapOuterPortsToNodeBorderStage
SnapOuterPortsToNodeBorderStage
moves edge ports that are outside the corresponding area of the nodes to
their border. Thus, it guarantees that ports are always in the interior of the nodes or on their borders.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
SnapOuterPortsToNodeBorderStage()
Creates a new instance of SnapOuterPortsToNodeBorderStage . |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Accepts all graph that are accepted by the core layout algorithm . |
void |
doLayout(LayoutGraph graph)
Snaps all edge ports that lie outside the bounds of the nodes to their border. |
Methods inherited from class y.layout.AbstractLayoutStage |
---|
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnapOuterPortsToNodeBorderStage()
SnapOuterPortsToNodeBorderStage
.
Method Detail |
---|
public boolean canLayout(LayoutGraph graph)
core layout algorithm
.
graph
- the input graph
true
if there is no core layout algorithm or the core layout algorithm can handle the given
graph, false
otherwiseLayouter.doLayout(LayoutGraph)
public void doLayout(LayoutGraph graph)
graph
- the input graphLayouter.canLayout(LayoutGraph)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |