ch.randelshofer.tree.sunburst
Class SunburstNode
java.lang.Object
ch.randelshofer.tree.sunburst.SunburstNode
- Direct Known Subclasses:
- SunburstCompositeNode
public class SunburstNode
- extends java.lang.Object
The SunburstNode encapsulatets a TreeNode whithin a SunburstTree.
It holds the computed left, right and depth value of a data.
- Version:
- 1.0 September 18, 2007 Created.
- Author:
- Werner Randelshofer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunburstNode
public SunburstNode(SunburstNode parent,
TreeNode data)
- Creates a new instance.
getNode
public TreeNode getNode()
getDataNodePath
public TreePath2<TreeNode> getDataNodePath()
getMaxDepth
public int getMaxDepth()
renumber
public void renumber(NodeInfo info)
children
public java.util.List<SunburstNode> children()
dump
public void dump()
isLeaf
public boolean isLeaf()
getLeft
public long getLeft()
getRight
public long getRight()
getExtent
public long getExtent()
getDepth
public int getDepth()
isDescendant
public boolean isDescendant(SunburstNode node)
findNode
public SunburstNode findNode(int depth,
long number)