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
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
TreeMap
Constructor.
Parameters:
root:
the root of the tree to be represented;
could not be
could not be
nullTreeMap
Constructor.
Parameters:
model:
the model of the tree to be represented;
could not be
could not be
nullInstance fields
updater
private TMUpdaterConcrete updater = null
Instance methods
getView
Returns a view of the treemap with the
given renderers.
given renderers.
Parameters:
cSize:
the object computing the size;
could not be
could not be
nullcDraw:
the object computing the drawing;
could not be
could not be
nullReturns:
- the desired view of the treemap