protected class JGraphTreeLayout.StandardTreeNode extends JGraphAbstractTreeLayout.TreeNode
Modifier and Type | Field and Description |
---|---|
protected JGraphAbstractTreeLayout.TreeNode |
parent
the parent node of this node
|
Constructor and Description |
---|
StandardTreeNode(java.lang.Object cell)
Creates tree node corresponding to the specified cell
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(JGraphTreeLayout.StandardTreeNode newChild)
Adds a new child to this parent node
|
java.util.Iterator |
getChildren() |
int |
getDepth() |
double |
getHeight() |
int |
getLeftWidth() |
java.util.List |
getNodesByLevel()
Return the nodes of the level of this node
|
JGraphAbstractTreeLayout.TreeNode |
getParent() |
int |
getRightWidth() |
void |
setDepth(int depth) |
void |
setParent(JGraphAbstractTreeLayout.TreeNode parent) |
void |
setPosition(java.awt.geom.Point2D parent,
double levelHeight)
Sets the position of this node
|
getWidth, routeEdges, setWidth
protected JGraphAbstractTreeLayout.TreeNode parent
public StandardTreeNode(java.lang.Object cell)
cell
- the cell this tree node corresponds topublic java.util.Iterator getChildren()
public int getLeftWidth()
public int getRightWidth()
public double getHeight()
public void addChild(JGraphTreeLayout.StandardTreeNode newChild)
newChild
- the child to be addedpublic void setPosition(java.awt.geom.Point2D parent, double levelHeight)
parent
- the parent of this nodelevelHeight
- the height of nodes on the same levelpublic java.util.List getNodesByLevel()
public int getDepth()
public void setDepth(int depth)
depth
- the depth to setpublic JGraphAbstractTreeLayout.TreeNode getParent()
public void setParent(JGraphAbstractTreeLayout.TreeNode parent)
parent
- the parent to setCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.