TUM CCSM Commons

edu.tum.cs.commons.treemap
Class SimpleTreeMapAlgorithm

java.lang.Object
  extended by edu.tum.cs.commons.treemap.SimpleTreeMapAlgorithm
All Implemented Interfaces:
ITreeMapLayoutAlgorithm

public class SimpleTreeMapAlgorithm
extends java.lang.Object
implements ITreeMapLayoutAlgorithm

A very simple tree map layouter just dividing the given rectangle along the longer side.

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

Constructor Summary
SimpleTreeMapAlgorithm()
           
 
Method Summary
<T> void
layout(ITreeMapNode<T> tree, java.awt.geom.Rectangle2D target)
          Modifies the given tree by adding layout information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTreeMapAlgorithm

public SimpleTreeMapAlgorithm()
Method Detail

layout

public <T> void layout(ITreeMapNode<T> tree,
                       java.awt.geom.Rectangle2D target)
Modifies the given tree by adding layout information. The topmost rectangle will be the given target rectangle. All other nodes will be assigned rectangles which sum exactly to the the rectangle of they target node and have areas proportional to their size.

Specified by:
layout in interface ITreeMapLayoutAlgorithm

TUM CCSM Commons

TUM CCSM Commons - 2.7