|
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.grouping.FixedGroupLayoutStage
public class FixedGroupLayoutStage
A layout stage for hierarchically grouped graphs. Activating this stage guarantees that a core layouter will keep the relative positions of nodes within the same group. Also, this stage is responsible for routing edges that connect nodes belonging to hierarchically unrelated groups.
![]() |
![]() |
| Field Summary | |
|---|---|
static Object |
FIXED_GROUP_NODES_DPKEY
This key can be used to select specific group nodes whose contents should keep their relative positions. |
static Object |
INTER_EDGES_DPKEY
This key is used to mark edges as inter-edges for orthogonal routing. |
static byte |
ROUTING_STYLE_ADOPT
Inter-edge routing style specifier. |
static byte |
ROUTING_STYLE_ORTHOGONAL
Inter-edge routing style specifier. |
static byte |
ROUTING_STYLE_STRAIGHTLINE
Inter-edge routing style specifier. |
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
FixedGroupLayoutStage()
Initializes a new instance of FixedGroupLayoutStage. |
|
FixedGroupLayoutStage(Layouter core)
Initializes a new instance of FixedGroupLayoutStage with the
given core layouter. |
|
| Method Summary | |
|---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
byte |
getInterEdgeroutingStyle()
Returns the inter-edge routing style used by this layouter. |
Layouter |
getOrthogonalEdgeRouter()
Returns the orthogonal edge router instance used to route the inter-edges orthogonally. |
void |
setInterEdgeRoutingStyle(byte routingStyle)
Sets the inter-edge routing style used by this layouter. |
void |
setOrthogonalEdgeRouter(Layouter edgeRouter)
Sets the orthogonal edge router instance used to route the inter-edges orthogonally. |
| 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 |
| Field Detail |
|---|
public static final Object FIXED_GROUP_NODES_DPKEY
DataProvider returns true for
the node or any of its ancestor (group) nodes.
Note:
If there is no DataProvider for this key, all group nodes are
considered selected.
public static final Object INTER_EDGES_DPKEY
getBool method will return true for inter-edges (i.e. edges
that have to be routed) and false for all other edges.
public static final byte ROUTING_STYLE_ADOPT
public static final byte ROUTING_STYLE_ORTHOGONAL
getOrthogonalEdgeRouter(),
Constant Field Valuespublic static final byte ROUTING_STYLE_STRAIGHTLINE
| Constructor Detail |
|---|
public FixedGroupLayoutStage()
FixedGroupLayoutStage.
public FixedGroupLayoutStage(Layouter core)
FixedGroupLayoutStage with the
given core layouter.
core - the core layout algorithm for this stage.| Method Detail |
|---|
public void setInterEdgeRoutingStyle(byte routingStyle)
public byte getInterEdgeroutingStyle()
public void setOrthogonalEdgeRouter(Layouter edgeRouter)
INTER_EDGES_DPKEY data provider
key.
INTER_EDGES_DPKEY,
getOrthogonalEdgeRouter()public Layouter getOrthogonalEdgeRouter()
setOrthogonalEdgeRouter(y.layout.Layouter)public boolean canLayout(LayoutGraph graph)
Layoutertrue iff the given graph can be laid
out by this algorithm. Calling doLayout with
the given graph as its argument will only success if
this method returns true.
public void doLayout(LayoutGraph graph)
Layouter
|
© Copyright 2000-2011, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||