|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreemap.TMNodeAdapter
public abstract class TMNodeAdapter
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().
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 |
---|
protected treemap.TMCushionData cushionData
Constructor Detail |
---|
public TMNodeAdapter()
Method Detail |
---|
public abstract TMNode getNode()
public abstract float getSize()
public java.lang.Object getUserData()
public void setUserData(java.lang.Object o)
o
- the user datapublic treemap.TMCushionData getCushionData()
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |