TreeMap Java Library

treemap
Class TMComputeDrawAdapter

java.lang.Object
  extended by treemap.TMComputeDrawAdapter
All Implemented Interfaces:
TMComputeDraw
Direct Known Subclasses:
TMFileModelDraw

public abstract class TMComputeDrawAdapter
extends java.lang.Object
implements TMComputeDraw

The TMComputeDrawAdapter class implements a adapter for the TMComputeDraw interface for users of the TMModelNode interface.

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

Constructor Summary
TMComputeDrawAdapter()
           
 
Method Summary
abstract  java.awt.Paint getColorTitleOfObject(java.lang.Object node)
          TO BE IMPLEMENTED.
 java.awt.Paint getFilling(TMNodeAdapter nodeAdapter)
          DO NOT OVERLOAD.
abstract  java.awt.Paint getFillingOfObject(java.lang.Object node)
          TO BE IMPLEMENTED.
 java.lang.String getTitle(TMNodeAdapter nodeAdapter)
          DO NOT OVERLOAD.
 java.awt.Paint getTitleColor(TMNodeAdapter nodeAdapter)
          DO NOT OVERLOAD.
abstract  java.lang.String getTitleOfObject(java.lang.Object node)
          TO BE IMPLEMENTED.
 java.lang.String getTooltip(TMNodeAdapter nodeAdapter)
          DO NOT OVERLOAD.
abstract  java.lang.String getTooltipOfObject(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

TMComputeDrawAdapter

public TMComputeDrawAdapter()
Method Detail

isCompatibleWith

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

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

getFilling

public final java.awt.Paint getFilling(TMNodeAdapter nodeAdapter)
                                throws TMExceptionBadTMNodeKind
DO NOT OVERLOAD.

Specified by:
getFilling in interface TMComputeDraw
Parameters:
nodeAdapter - the node which we will draw
Returns:
the filling of the node
Throws:
TMExceptionBadTMNodeKind - If the kind of TMNode returned is incompatible with this TMComputeDraw.

getTooltip

public final java.lang.String getTooltip(TMNodeAdapter nodeAdapter)
                                  throws TMExceptionBadTMNodeKind
DO NOT OVERLOAD.

Specified by:
getTooltip in interface TMComputeDraw
Parameters:
nodeAdapter - the node for which we want the tooltip
Returns:
the tooltip of the node
Throws:
TMExceptionBadTMNodeKind - If the kind of TMNode returned is incompatible with this TMComputeDraw.

getTitle

public final java.lang.String getTitle(TMNodeAdapter nodeAdapter)
                                throws TMExceptionBadTMNodeKind
DO NOT OVERLOAD.

Specified by:
getTitle in interface TMComputeDraw
Parameters:
nodeAdapter - the node for which we want the title
Returns:
the title of the node
Throws:
TMExceptionBadTMNodeKind - if the kind of TMNode returned is incompatible with this TMComputeDraw.

getTitleColor

public final java.awt.Paint getTitleColor(TMNodeAdapter nodeAdapter)
                                   throws TMExceptionBadTMNodeKind
DO NOT OVERLOAD.

Specified by:
getTitleColor in interface TMComputeDraw
Parameters:
nodeAdapter - the node for which we want the title
Returns:
the title of the node
Throws:
TMExceptionBadTMNodeKind - if the kind of TMNode returned is incompatible with this TMComputeDraw.

isCompatibleWithObject

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


getFillingOfObject

public abstract java.awt.Paint getFillingOfObject(java.lang.Object node)
TO BE IMPLEMENTED.


getTooltipOfObject

public abstract java.lang.String getTooltipOfObject(java.lang.Object node)
TO BE IMPLEMENTED.


getTitleOfObject

public abstract java.lang.String getTitleOfObject(java.lang.Object node)
TO BE IMPLEMENTED.


getColorTitleOfObject

public abstract java.awt.Paint getColorTitleOfObject(java.lang.Object node)
TO BE IMPLEMENTED.


TreeMap Java Library

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