TMUpdater
| Kind of class: | public interface |
|---|---|
| Package: | treemap |
| Inherits from: | none |
| Implemented by: | |
| Version: | 2.5 |
| Author: | Christophe Bouthier [bouthier@loria.fr] |
| Package classpath: | treemap.TMUpdater |
| File last modified: | Friday, 28 December 2001, 20:31:54 |
The TMUpdater interface represents the object that
a TMNode should call to notify the treemap that something
has changed : size, state, numers of childs, ...
A TMNode gets a reference to a TMUpdater object in the building
of the treemap, by the setUpdater() method.
A TMNode should call the corresponding update method when
something has changed.
a TMNode should call to notify the treemap that something
has changed : size, state, numers of childs, ...
A TMNode gets a reference to a TMUpdater object in the building
of the treemap, by the setUpdater() method.
A TMNode should call the corresponding update method when
something has changed.
Summary
Instance methods
- updateSize
- To be called when the user node has its size changed.
- updateState
- To be called when the user node has its state changed.
- addChild
- To be called when the user node has a new child.
- removeChild
- To be called when the user node removes a child.
Instance methods
addChild
To be called when the user node has a new child.
Parameters:
node :
the node that has a new child
child:
the node's new child
removeChild
To be called when the user node removes a child.
Parameters:
node :
the node that removes a child
child:
the node's lost child
updateSize
To be called when the user node has its size changed.
Parameters:
node:
the node that has its size changed
updateState
To be called when the user node has its state changed.
Parameters:
node:
the node that has its state changed