TreeMap Java Library

treemap
Class TMAlgorithmSquarified

java.lang.Object
  extended by java.util.Observable
      extended by treemap.TMAlgorithm
          extended by treemap.TMAlgorithmSquarified

public class TMAlgorithmSquarified
extends TMAlgorithm

The TMAlgorithmSquarified class implements a squarified treemap drawing algorithm. See Bruls, Huizing and van Wijk.

Version:
2.5
Author:
Christophe Bouthier [bouthier@loria.fr]

Field Summary
 
Fields inherited from class treemap.TMAlgorithm
border, borderLimit, borderSize, cushion, f, h, HORIZONTAL, IS, LX, LY, LZ, nodesTitles, root, VERTICAL, view
 
Constructor Summary
TMAlgorithmSquarified()
           
 
Method Summary
protected  void drawChildren(java.awt.Graphics2D g, treemap.TMNodeModelComposite node, short axis, int level)
          Draws the children of a node, by setting their drawing area first, dependant of the algorithm used.
 
Methods inherited from class treemap.TMAlgorithm
computeCushionData, dontDrawNodesTitles, drawNodes, drawNodesTitles, fillCushionNode, fillNode, getBorderSize, getConfiguringView, initialize, isDrawingTitles, setBorderSize, switchAxis
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMAlgorithmSquarified

public TMAlgorithmSquarified()
Method Detail

drawChildren

protected void drawChildren(java.awt.Graphics2D g,
                            treemap.TMNodeModelComposite node,
                            short axis,
                            int level)
Draws the children of a node, by setting their drawing area first, dependant of the algorithm used.

Specified by:
drawChildren in class TMAlgorithm
Parameters:
g - the graphic context
node - the node whose children should be drawn
axis - the axis of separation
level - the level of deep

TreeMap Java Library

TreeMap Java Library - www.bouthier.net - treemap.sf.net - 2001