TreeMap Java Library

treemap
Class TMAlgorithmClassic

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

public class TMAlgorithmClassic
extends TMAlgorithm

The TMAlgorithmClassic class implements a classic treemap drawing algorithm.

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
TMAlgorithmClassic()
           
 
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

TMAlgorithmClassic

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