|
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.PatchRouterStage
public class PatchRouterStage
PatchRouterStage
optimizes the performance of OrthogonalEdgeRouter
.
This stage decomposes the input graph into several smaller subgraphs and the
edge routing algorithm
will be applied on each of them separately. This will reduce the
execution time and peak memory consumption.
PatchRouterStage
provides an optimization step for OrthogonalEdgeRouter
and will not have
an effect with other edge routing algorithms.OrthogonalEdgeRouter
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
PatchRouterStage(Layouter coreLayouter)
Creates a new instance of PatchRouterStage using the given core layout algortihm . |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Accepts all graphs that are accepted by the core layout algorithm . |
void |
doLayout(LayoutGraph graph)
Decomposes the graph in order to apply OrthogonalEdgeRouter to smaller partial subgraphs. |
int |
getActivationThreshold()
Returns a threshold for activating PatchRouterStage . |
void |
setActivationThreshold(int threshold)
Specifies a threshold for activating PatchRouterStage . |
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 PatchRouterStage(Layouter coreLayouter)
PatchRouterStage
using the given core layout algortihm
.
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 in 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 setActivationThreshold(int threshold)
PatchRouterStage
.
The optimization step implemented in this stage will only be applied if the sum of the edges and nodes of the input graph is greater than the specified activation threshold.
PatchRouterStage
will be active for every graph.threshold
- the threshold for activating this stagepublic int getActivationThreshold()
PatchRouterStage
.
The optimization step implemented in this stage will only be applied if the sum of the edges and nodes of the input graph is greater than the specified activation threshold.
PatchRouterStage
will be active for every graph.setActivationThreshold(int)
public void doLayout(LayoutGraph graph)
OrthogonalEdgeRouter
to smaller partial subgraphs.
activation threshold
.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 |