| 
 | 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.GroupNodeRouterStage
public class GroupNodeRouterStage
GroupNodeRouterStage adds support for hierarchically grouped graphs to OrthogonalEdgeRouter.
 
 
 Group nodes as well as normal nodes are considered as obstacles for OrthogonalEdgeRouter. Thus, they have to be 
 avoided during the routing of edges which is counterproductive if one endpoint of an edge is contained in a group node.
 
   To avoid such difficulties, this stage temporarily removes group nodes and inserts some placeholders instead.
   Thus, the obstacles are not present for the core layout algorithm but the
   information about the bounds of the group nodes is maintained. Also, edges can connect to group nodes.
   After invoking the core layout algorithm, the group nodes are reinserted. 
 
GroupNodeRouterStage will not have an effect with edge routing algorithms other than
            OrthogonalEdgeRouter.OrthogonalEdgeRouter, 
Grouping, 
GroupingKeys| Field Summary | 
|---|
| Fields inherited from interface y.layout.Layouter | 
|---|
| EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES | 
| Constructor Summary | |
|---|---|
| GroupNodeRouterStage()Creates a new instance of GroupNodeRouterStage. | |
| GroupNodeRouterStage(Layouter coreLayouter)Creates a new instance of GroupNodeRouterStageusing the givencore layout algorithm. | |
| Method Summary | |
|---|---|
|  boolean | canLayout(LayoutGraph graph)Accepts all graphs that are accepted by the core layout algorithm. | 
|  void | doLayout(LayoutGraph graph)Handles hierarchically grouped graphs 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 GroupNodeRouterStage()
GroupNodeRouterStage.
GroupNodeRouterStage will not have an effect with edge routing algorithms other than
            OrthogonalEdgeRouter. An according core layout algorithm must
            be set.public GroupNodeRouterStage(Layouter coreLayouter)
GroupNodeRouterStage using the given
 core layout algorithm.
GroupNodeRouterStage provides an optimization step for OrthogonalEdgeRouter and will not
            work with other edge routing algorithms.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 given 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-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||