public class CushionTreeMapRenderer extends java.lang.Object implements ITreeMapRenderer
Constructor and Description |
---|
CushionTreeMapRenderer(double h,
double f)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
renderTreeMap(ITreeMapNode<T> node,
java.awt.Graphics2D graphics)
Renders the given tree into the graphics.
|
public CushionTreeMapRenderer(double h, double f)
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.public <T> void renderTreeMap(ITreeMapNode<T> node, java.awt.Graphics2D graphics)
renderTreeMap
in interface ITreeMapRenderer
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.