|
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.PartitionGridRouterStage
public class PartitionGridRouterStage
PartitionGridRouterStage
adds support for PartitionGrid
to OrthogonalEdgeRouter
.
Before the edge routing algorithm is invoked, the PartitionGrid
information is modeled in the graph. Edges
should not be routed back and forth between two PartitionCell
s.
The graph structure is restored after the edges have been routed.
Graph containing a PartitionGrid
PartitionGridRouterStage
will not have an effect with edge routing algorithms other than
OrthogonalEdgeRouter
.OrthogonalEdgeRouter
,
PartitionGrid
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
PartitionGridRouterStage()
Creates a new instance of PartitionGridRouterStage . |
|
PartitionGridRouterStage(Layouter coreLayouter)
Creates a new instance of PartitionGridRouterStage using the given
core layout algorithm . |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Accepts all graphs that are accepted by the core layout algorithm . |
void |
doLayout(LayoutGraph graph)
Handles partition grids for the core layout algorithm . |
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 PartitionGridRouterStage()
PartitionGridRouterStage
.
PartitionGridRouterStage
will not have an effect with edge routing algorithms other than
OrthogonalEdgeRouter
. An according core layout algorithm
must
be set.public PartitionGridRouterStage(Layouter coreLayouter)
PartitionGridRouterStage
using the given
core layout algorithm
.
core layout algorithm
must contain an instance of
OrthogonalEdgeRouter
in its layout pipeline. Also, the
scope
of this routing algorithm needs to contain
all edges of the graph.coreLayouter
- the core layout algorithmMethod Detail |
---|
public boolean canLayout(LayoutGraph graph)
core layout algorithm
.
graph
- the input graph
true
if the core layout algorithm can handle the graph, false
otherwiseLayouter.doLayout(LayoutGraph)
public void doLayout(LayoutGraph graph)
core layout algorithm
.
core layout algorithm
must be an instance of
OrthogonalEdgeRouter
or at least must have such an instance in its layout pipeline.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 |