TreeMap Java Library

treemap
Class TMNodeAdapter

java.lang.Object
  extended by treemap.TMNodeAdapter

public abstract class TMNodeAdapter
extends java.lang.Object

The TMNodeAdapter abstract class encapsulate a TMNode for a TMComputeDraw. To compute filling and tooltip, a TMComputeDraw could need more information that what is stocked in the TMNode. For example, a filling could be size-dependant, and a tooltip could be filling-dependant and size-dependant. The TMNodeAdapter can give the size, and can transmit information between filling and tooltip with getUserData() and setUserData().

Version:
2.5
Author:
Christophe Bouthier [bouthier@loria.fr]

Field Summary
protected  treemap.TMCushionData cushionData
           
 
Constructor Summary
TMNodeAdapter()
           
 
Method Summary
 treemap.TMCushionData getCushionData()
           
abstract  TMNode getNode()
          Returns the TMNode encapsulated.
abstract  float getSize()
          Returns the size of the TMNode encapsulated.
 java.lang.Object getUserData()
          Returns the user data.
 void setUserData(java.lang.Object o)
          Sets the user data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cushionData

protected treemap.TMCushionData cushionData
Constructor Detail

TMNodeAdapter

public TMNodeAdapter()
Method Detail

getNode

public abstract TMNode getNode()
Returns the TMNode encapsulated.

Returns:
the TMNode encapsulated

getSize

public abstract float getSize()
Returns the size of the TMNode encapsulated.

Returns:
the size of the TMNode encapsulated

getUserData

public java.lang.Object getUserData()
Returns the user data.

Returns:
the user data

setUserData

public void setUserData(java.lang.Object o)
Sets the user data.

Parameters:
o - the user data

getCushionData

public treemap.TMCushionData getCushionData()

TreeMap Java Library

TreeMap Java Library - www.bouthier.net - treemap.sf.net - 2001