TreeMap Java Library

treemap
Class TMComputeSizeAdapter

java.lang.Object
  extended by treemap.TMComputeSizeAdapter
All Implemented Interfaces:
TMComputeSize
Direct Known Subclasses:
TMFileModelSize

public abstract class TMComputeSizeAdapter
extends java.lang.Object
implements TMComputeSize

The TMComputeSizeAdapter class implements a adapter for the TMComputeSize interface for users of the TMModelNode interface.

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

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

TMComputeSizeAdapter

public TMComputeSizeAdapter()
Method Detail

isCompatibleWith

public final boolean isCompatibleWith(TMNode node)
DO NOT OVERLOAD.

Specified by:
isCompatibleWith in interface TMComputeSize
Parameters:
node - the TMNode to test the compatibility with
Returns:
true if this kind of node is compatible; false otherwise

getSize

public final float getSize(TMNode node)
                    throws TMExceptionBadTMNodeKind
DO NOT OVERLOAD.

Specified by:
getSize in interface TMComputeSize
Parameters:
node - we will compute the size of this TMNode
Returns:
the computed size of the TMNode
Throws:
TMExceptionBadTMNodeKind - If this kind of TMNode is incompatible with this TMComputeSize.

isCompatibleWithObject

public abstract boolean isCompatibleWithObject(java.lang.Object node)
TO BE IMPLEMENTED.


getSizeOfObject

public abstract float getSizeOfObject(java.lang.Object node)
TO BE IMPLEMENTED.


TreeMap Java Library

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