TUM CCSM Commons

edu.tum.cs.commons.treemap
Class FlatTreeMapRenderer

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

public class FlatTreeMapRenderer
extends java.lang.Object
implements ITreeMapRenderer

A very simple tree map renderer just drawing "flat" rectangles.

Version:
$Rev: 26931 $
Author:
Benjamin Hummel, $Author: besenreu $
Rating:
GREEN Hash: B52F73980DF98FACCD4B858A5872C409

Constructor Summary
FlatTreeMapRenderer()
           
 
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

FlatTreeMapRenderer

public FlatTreeMapRenderer()
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