|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.CanonicMultiStageLayouter | +--y.layout.tree.HVTreeLayouter
This tree layouter allows to layout a tree such that each subgraph rooted at a node can either have a horizontal or vertical layout.
Here is an sample output of the layouter
Field Summary | |
protected LayoutGraph |
graph
|
static Object |
HORIZONTAL_SUBTREE
Subtree orientation specifier. |
static Object |
SUBTREE_ORIENTATION
The data provider key used to specify the subtree orientation of each node in the tree. |
static Object |
VERTICAL_SUBTREE
Subtree orientation specifier. |
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
HVTreeLayouter()
|
Method Summary | |
boolean |
canLayoutCore(LayoutGraph graph)
The core layouter can layout trees. |
void |
doLayoutCore(LayoutGraph graph)
Core layout routine. |
double |
getHorizontalSpace()
Returns the horizontal distance between adjacent nodes. |
double |
getVerticalSpace()
Returns the vertical distance between adjacent nodes. |
protected boolean |
isHorizontalRoot(Node v)
Returns whether or not the subtree rooted at the given node should be layed out horizontally. |
protected boolean |
isVerticalRoot(Node v)
Returns whether or not the subtree rooted at the given node should be layed out vertically. |
void |
setHorizontalSpace(double hspace)
Sets the horizontal distance between adjacent nodes. |
void |
setVerticalSpace(double vspace)
Sets the vertical distance between adjacent nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Object SUBTREE_ORIENTATION
HVTreeLayouter.HORIZONTAL_SUBTREE
, HVTreeLayouter.VERTICAL_SUBTREE
public static final Object HORIZONTAL_SUBTREE
public static final Object VERTICAL_SUBTREE
protected LayoutGraph graph
Constructor Detail |
public HVTreeLayouter()
Method Detail |
public void setHorizontalSpace(double hspace)
10
is set.
public double getHorizontalSpace()
HVTreeLayouter.setHorizontalSpace(double)
public void setVerticalSpace(double vspace)
10
is set.
public double getVerticalSpace()
HVTreeLayouter.setVerticalSpace(double)
public void doLayoutCore(LayoutGraph graph)
doLayoutCore
in class CanonicMultiStageLayouter
public boolean canLayoutCore(LayoutGraph graph)
canLayoutCore
in class CanonicMultiStageLayouter
protected boolean isVerticalRoot(Node v)
protected boolean isHorizontalRoot(Node v)
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |