edu.tum.cs.commons.treemap
Class SimpleTreeMapAlgorithm
java.lang.Object
edu.tum.cs.commons.treemap.SimpleTreeMapAlgorithm
- All Implemented Interfaces:
- ITreeMapLayoutAlgorithm
public class SimpleTreeMapAlgorithm
- extends 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTreeMapAlgorithm
public SimpleTreeMapAlgorithm()
layout
public <T> void layout(ITreeMapNode<T> tree,
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 - 2.7