Treeviz 0.37 2010-10-17

ch.randelshofer.tree.circlemap
Class CirclemapNode

java.lang.Object
  extended by ch.randelshofer.tree.circlemap.Circle
      extended by ch.randelshofer.tree.circlemap.CirclemapNode
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
CirclemapCompositeNode

public class CirclemapNode
extends Circle

The CirclemapNode class encapsulates a TreeNode whithin a CirclemapTree.

It holds the radius of the data as an absolute value. The location is held relative to the center of the parent data.

This data can layout its subtree in a space-filling circular treemap.

Version:
1.0 Jan 16, 2008 Created.
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class ch.randelshofer.tree.circlemap.Circle
cx, cy, radius
 
Constructor Summary
CirclemapNode(CirclemapNode parent, TreeNode data)
           
 
Method Summary
 java.util.List<CirclemapNode> children()
           
 TreeNode getDataNode()
           
 TreePath2<TreeNode> getDataNodePath()
           
 int getDescendantCount()
           
 CirclemapNode getParent()
           
 double getWeightRadius(NodeInfo info)
           
 boolean isLeaf()
           
 void layout(NodeInfo info, ProgressObserver p)
          Lays out the subtree starting at this data in a space-filling circular treemap.
 java.lang.String toString()
           
 void updateParentLayouts(NodeInfo info)
          Updates the layout of all parent nodes.
 
Methods inherited from class ch.randelshofer.tree.circlemap.Circle
clone, contains, contains, contains, getCX, getCY, getIntersectionRadius, getRadius, intersects, intersects
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CirclemapNode

public CirclemapNode(CirclemapNode parent,
                     TreeNode data)
Method Detail

children

public java.util.List<CirclemapNode> children()

isLeaf

public boolean isLeaf()

getDataNodePath

public TreePath2<TreeNode> getDataNodePath()

layout

public void layout(NodeInfo info,
                   ProgressObserver p)
Lays out the subtree starting at this data in a space-filling circular treemap.


getWeightRadius

public double getWeightRadius(NodeInfo info)

getParent

public CirclemapNode getParent()

getDataNode

public TreeNode getDataNode()

toString

public java.lang.String toString()
Overrides:
toString in class Circle

getDescendantCount

public int getDescendantCount()

updateParentLayouts

public void updateParentLayouts(NodeInfo info)
Updates the layout of all parent nodes.

Parameters:
info -

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