|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
com.jgraph.layout.tree.JGraphTreeLayout.StandardTreeNode
An ADT representing a node in a tree structure.
Field Summary |
Fields inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode |
cell, height, width, x, y |
Constructor Summary | |
JGraphTreeLayout.StandardTreeNode(Object cell)
Creates tree node corresponding to the specified cell |
Method Summary | |
Iterator |
getChildren()
|
double |
getHeight()
|
int |
getLeftWidth()
|
List |
getNodesByLevel()
Return the nodes of the level of this node |
int |
getRightWidth()
|
void |
setPosition(Point2D parent,
double levelHeight)
Sets the position of this node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JGraphTreeLayout.StandardTreeNode(Object cell)
cell
- the cell this tree node corresponds toMethod Detail |
public Iterator getChildren()
public int getLeftWidth()
public int getRightWidth()
public double getHeight()
public void setPosition(Point2D parent, double levelHeight)
parent
- the parent of this nodelevelHeight
- the height of nodes on the same levelpublic List getNodesByLevel()
|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |