|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TMComputeSize
The TMComputeSize interface should be implemented by every class that implements algorithms for computing size of TMNode.
As computing the size of a TMNode is dependant of the kind of
TMNode, a TMComputeSize should test the kind of TMNode given,
and throw an TMExceptionBadTMNodeKind if there is incompatibility.
The isCompatibleWith method should test the kind of TMNode
passed in parameter and return true
if this TMComputeSize
is compatible with it.
Method Summary | |
---|---|
float |
getSize(TMNode node)
Returns the size of the TMNode. |
boolean |
isCompatibleWith(TMNode node)
Test if this TMComputeSize could be used with the kind of TMNode passed in parameter. |
Method Detail |
---|
boolean isCompatibleWith(TMNode node)
node
- the TMNode to test the compatibility with
true
if this kind of node is compatible;
false
otherwisefloat getSize(TMNode node) throws TMExceptionBadTMNodeKind
node
- we will compute the size of this TMNode
TMExceptionBadTMNodeKind
- If this kind of TMNode is incompatible
with this TMComputeSize.
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |