ch.randelshofer.tree.circlemap
Class CirclemapNode
java.lang.Object
ch.randelshofer.tree.circlemap.Circle
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
| Fields inherited from class ch.randelshofer.tree.circlemap.Circle |
cx, cy, radius |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CirclemapNode
public CirclemapNode(CirclemapNode parent,
TreeNode data)
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 -