Treeviz 0.37 2010-10-17

ch.randelshofer.tree.sunburst
Class SunburstNode

java.lang.Object
  extended by 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

Constructor Summary
SunburstNode(SunburstNode parent, TreeNode data)
          Creates a new instance.
 
Method Summary
 java.util.List<SunburstNode> children()
           
 void dump()
           
 SunburstNode findNode(int depth, long number)
           
 TreePath2<TreeNode> getDataNodePath()
           
 int getDepth()
           
 long getExtent()
           
 long getLeft()
           
 int getMaxDepth()
           
 TreeNode getNode()
           
 long getRight()
           
 boolean isDescendant(SunburstNode node)
           
 boolean isLeaf()
           
 void renumber(NodeInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunburstNode

public SunburstNode(SunburstNode parent,
                    TreeNode data)
Creates a new instance.

Method Detail

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)

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.