TreeMap

Kind of class:public class
Package:treemap
Inherits from:none
Version:2.5
Author:Christophe Bouthier [bouthier@loria.fr]
Package classpath:treemap.TreeMap
File last modified:Thursday, 27 December 2001, 19:19:06
The TreeMap class implements a tree map representation for data.
For information about treemap, see
http://www.cs.umd.edu/hcil/treemaps/">Schneiderman 1992

A TreeMap is build from hierarchical data, given as a tree
of TMNode. So, the first parameter to give to build a TreeMap
is the TMNode which is the root of the to-be-represented tree.
The tree to be displayed by the TreeMap should be build before the call
to TreeMap, that is the root node should return children
when the children() method is called.

You can get a TMView (herited from JView) containing the TreeMap by calling
getView(). It takes a TMSizeRenderer and a TMDrawRenderer as parameters.

Summary


Constructors
Instance fields
Instance methods
  • getView
    • Returns a view of the treemap with the

Constructors

TreeMap

public TreeMap(
TMNode root)

Constructor.
Parameters:
root:
the root of the tree to be represented;
could not be null

TreeMap

public TreeMap(

Constructor.
Parameters:
model:
the model of the tree to be represented;
could not be null

Instance fields

updater

private TMUpdaterConcrete updater = null

Instance methods

getView

public TMView getView(

Returns a view of the treemap with the
given renderers.
Parameters:
cSize:
the object computing the size;
could not be null
cDraw:
the object computing the drawing;
could not be null
Returns:
  • the desired view of the treemap