edu.tum.cs.commons.treemap
Class NodeTextRenderer
java.lang.Object
edu.tum.cs.commons.treemap.NodeTextRenderer
- All Implemented Interfaces:
- ITreeMapRenderer
public class NodeTextRenderer
- extends Object
- implements ITreeMapRenderer
A simple renderer that draws tree map node texts into the tree map.
- Version:
- $Rev: 26931 $
- Author:
- juergens, $Author: besenreu $
- Rating:
- GREEN Hash: 592D3A4F3823417DAADE575320937157
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeTextRenderer
public NodeTextRenderer(Color textColor,
Pattern separationPattern)
- Constructor
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