|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreemap.TMComputeSizeAdapter
public abstract class TMComputeSizeAdapter
The TMComputeSizeAdapter class implements a adapter for the TMComputeSize interface for users of the TMModelNode interface.
Constructor Summary | |
---|---|
TMComputeSizeAdapter()
|
Method Summary | |
---|---|
float |
getSize(TMNode node)
DO NOT OVERLOAD. |
abstract float |
getSizeOfObject(java.lang.Object node)
TO BE IMPLEMENTED. |
boolean |
isCompatibleWith(TMNode node)
DO NOT OVERLOAD. |
abstract boolean |
isCompatibleWithObject(java.lang.Object node)
TO BE IMPLEMENTED. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TMComputeSizeAdapter()
Method Detail |
---|
public final boolean isCompatibleWith(TMNode node)
isCompatibleWith
in interface TMComputeSize
node
- the TMNode to test the compatibility with
true
if this kind of node is compatible;
false
otherwisepublic final float getSize(TMNode node) throws TMExceptionBadTMNodeKind
getSize
in interface TMComputeSize
node
- we will compute the size of this TMNode
TMExceptionBadTMNodeKind
- If this kind of TMNode is incompatible
with this TMComputeSize.public abstract boolean isCompatibleWithObject(java.lang.Object node)
public abstract float getSizeOfObject(java.lang.Object node)
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |