|
TreeMap Java Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TMUpdater
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.
| Method Summary | |
|---|---|
void |
addChild(TMNode node,
TMNode child)
To be called when the user node has a new child. |
void |
removeChild(TMNode node,
TMNode child)
To be called when the user node removes a child. |
void |
updateSize(TMNode node)
To be called when the user node has its size changed. |
void |
updateState(TMNode node)
To be called when the user node has its state changed. |
| Method Detail |
|---|
void updateSize(TMNode node)
node - the node that has its size changedvoid updateState(TMNode node)
node - the node that has its state changed
void addChild(TMNode node,
TMNode child)
node - the node that has a new childchild - the node's new child
void removeChild(TMNode node,
TMNode child)
node - the node that removes a childchild - the node's lost child
|
TreeMap Java Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||