TUM CCSM Commons

edu.tum.cs.commons.treemap
Class NodeTextRenderer

java.lang.Object
  extended by edu.tum.cs.commons.treemap.NodeTextRenderer
All Implemented Interfaces:
ITreeMapRenderer

public class NodeTextRenderer
extends java.lang.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

Constructor Summary
NodeTextRenderer(java.awt.Color textColor, java.util.regex.Pattern separationPattern)
          Constructor
 
Method Summary
<T> void
renderTreeMap(ITreeMapNode<T> node, java.awt.Graphics2D graphics)
          Renders the given tree into the graphics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTextRenderer

public NodeTextRenderer(java.awt.Color textColor,
                        java.util.regex.Pattern separationPattern)
Constructor

Method Detail

renderTreeMap

public <T> void renderTreeMap(ITreeMapNode<T> node,
                              java.awt.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

TUM CCSM Commons - 2.7