|
JGraph
|
|||||||||
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
protected class JGraphTreeLayout.StandardTreeNode
An ADT representing a node in a tree structure.
Field Summary | |
---|---|
protected JGraphAbstractTreeLayout.TreeNode |
parent
the parent node of this node |
Fields inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode |
---|
cell, height, width, x, y |
Constructor Summary | |
---|---|
JGraphTreeLayout.StandardTreeNode(java.lang.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 |
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 |
Methods inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode |
---|
getWidth, routeEdges, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JGraphAbstractTreeLayout.TreeNode parent
Constructor Detail |
---|
public JGraphTreeLayout.StandardTreeNode(java.lang.Object cell)
cell
- the cell this tree node corresponds toMethod Detail |
---|
public 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 set
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |