public class RectmapNode
extends java.awt.geom.Rectangle2D.Double
TreeNode whithin a RectmapTree.
It holds the width and height of the node as an absolute value. The location is held relative to the location of the parent node.
This node can layout its subtree in a space-filling rectangular treemap.
| Modifier and Type | Field and Description |
|---|---|
protected double |
cumulatedWeight |
protected TreePath2<TreeNode> |
dataNodePath |
protected RectmapNode |
parent |
| Constructor and Description |
|---|
RectmapNode(RectmapNode parent,
TreeNode data) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RectmapNode> |
children() |
double |
getCumulatedWeight() |
TreePath2<TreeNode> |
getDataNodePath() |
int |
getDescendantCount() |
RectmapNode |
getParent() |
boolean |
isLeaf() |
void |
layout(ProgressObserver p)
Lays out the subtree starting at this node in a space-filling
rectangular treemap.
|
java.lang.String |
toString() |
void |
updateCumulatedWeight(NodeInfo info) |
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRectadd, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, unionprotected RectmapNode parent
protected double cumulatedWeight
public RectmapNode(RectmapNode parent, TreeNode data)
public java.util.List<RectmapNode> children()
public boolean isLeaf()
public void layout(ProgressObserver p)
Note: You must call updateCumulatedWeight before you can layout a node.
public RectmapNode getParent()
public void updateCumulatedWeight(NodeInfo info)
public double getCumulatedWeight()
public int getDescendantCount()
public java.lang.String toString()
toString in class java.awt.geom.Rectangle2D.Double