edu.tum.cs.commons.treemap
Class CushionTreeMapRenderer
java.lang.Object
edu.tum.cs.commons.treemap.CushionTreeMapRenderer
- All Implemented Interfaces:
- ITreeMapRenderer
public class CushionTreeMapRenderer
- extends Object
- implements ITreeMapRenderer
A tree map renderer using "cushions" as described in J. van Wijk, H. van de
Wetering: "Cushion Treemaps: Visualization of Hierarchical Information".
- Version:
- $Rev: 26931 $
- Author:
- Benjamin Hummel, $Author: besenreu $
- Rating:
- GREEN Hash: 8731C2C4BC1A38B13F743E451FBF6A43
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CushionTreeMapRenderer
public CushionTreeMapRenderer(double h,
double f)
- Constructor.
- Parameters:
h - the height parameter giving the heigt of the cushions relative
to their size. 0.5 seems to be a reasonable value.f - the scale factor used to reduce the heights of nested
cushions. The value should be between 0 and 1, where smaller
values will reduce the cushion effect.
renderTreeMap
public <T> void renderTreeMap(ITreeMapNode<T> node,
Graphics2D graphics)
- Renders the given tree into the graphics. The position is determined by
the rectangle of the topmost node of the tree given.
- Specified by:
renderTreeMap in interface ITreeMapRenderer
- Parameters:
node - the tree to render. The tree must have been layouted and the
outermost rectangle should be completely included in the
provided graphics.graphics - the graphics used for drawing.
TUM CCSM Commons - 2.7