com.jgraph.layout.tree
protected class JGraphTreeLayout.StandardTreeNode extends TreeNode
Field Summary | |
---|---|
protected TreeNode | parent the parent node of this node |
Constructor Summary | |
---|---|
StandardTreeNode(Object cell)
Creates tree node corresponding to the specified cell
|
Method Summary | |
---|---|
void | addChild(JGraphTreeLayout.StandardTreeNode newChild)
Adds a new child to this parent node |
Iterator | getChildren() |
int | getDepth() |
double | getHeight() |
int | getLeftWidth() |
List | getNodesByLevel()
Return the nodes of the level of this node
|
TreeNode | getParent() |
int | getRightWidth() |
void | setDepth(int depth) |
void | setParent(TreeNode parent) |
void | setPosition(Point2D parent, double levelHeight)
Sets the position of this node
|
Parameters: cell the cell this tree node corresponds to
Parameters: newChild the child to be added
Returns: the children of this node
Returns: the depth
Returns: the height of this node
Returns: the left-most point of the left contour
Returns: collection of nodes of same level
Returns: the parent
Returns: the right-most point of the right contour
Parameters: depth the depth to set
Parameters: parent the parent to set
Parameters: parent the parent of this node levelHeight the height of nodes on the same level