|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
y.layout.router.ReducedSphereOfActionStage
public class ReducedSphereOfActionStage
ReducedSphereOfActionStage optimizes the performance of OrthogonalEdgeRouter when the
scope is constrained to a subset of edges.
ReducedSphereOfActionStage provides an optimization step for OrthogonalEdgeRouter and will
not have an effect with other edge routing algorithms.OrthogonalEdgeRouter,
OrthogonalEdgeRouter.setSphereOfAction(byte)
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
ReducedSphereOfActionStage(Layouter coreLayouter)
Creates a new instance of ReducedSphereOfActionStage 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)
Adds an optimization step to OrthogonalEdgeRouter when routing a subset of edges. |
int |
getActivationThreshold()
Returns a threshold for activating ReducedSphereOfActionStage. |
void |
setActivationThreshold(int threshold)
Specifies a threshold for activating ReducedSphereOfActionStage. |
| 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 ReducedSphereOfActionStage(Layouter coreLayouter)
ReducedSphereOfActionStage 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 of the graph.coreLayouter - the core layout algorithm| Method 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)
OrthogonalEdgeRouter when routing a subset of edges.
activation threshold and only a subset of edges of the graph is included.core layout algorithm must be an instance of
OrthogonalEdgeRouter or at least must have such an instance in its layout pipeline.graph - the input graphOrthogonalEdgeRouter.setSphereOfAction(byte)public void setActivationThreshold(int threshold)
ReducedSphereOfActionStage.
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.
ReducedSphereOfActionStage will be active for every graph.threshold - the threshold for activating this stagepublic int getActivationThreshold()
ReducedSphereOfActionStage.
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.
ReducedSphereOfActionStage will be active for every graph.setActivationThreshold(int)
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||