TreeMap Java Library

treemap.demo
Class TMFileDrawPattern

java.lang.Object
  extended by treemap.demo.TMFileDraw
      extended by treemap.demo.TMFileDrawPattern
All Implemented Interfaces:
TMComputeDraw

public class TMFileDrawPattern
extends TMFileDraw

The TMFileDrawPattern implements a example of renderer for TMFileNode. It use the date of last modification as color, and patterns instead of color for filling rects.

The color legend is :

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

Constructor Summary
TMFileDrawPattern()
          Constructor.
 
Method Summary
 java.awt.Paint getFilling(TMNodeAdapter nodeAdapter)
          Returns the filling of the node.
 
Methods inherited from class treemap.demo.TMFileDraw
getTitle, getTitleColor, getTooltip, isCompatibleWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMFileDrawPattern

public TMFileDrawPattern()
Constructor.

Method Detail

getFilling

public java.awt.Paint getFilling(TMNodeAdapter nodeAdapter)
                          throws TMExceptionBadTMNodeKind
Returns the filling of the node. The nodeAdapter should return an instance of TMFileNode.

Specified by:
getFilling in interface TMComputeDraw
Overrides:
getFilling in class TMFileDraw
Parameters:
nodeAdapter - we compute the filling of this node; should return an instance of TMFileNode
Returns:
the filling of the node
Throws:
TMExceptionBadTMNodeKind - If the node does not return an instance of TMFileNode

TreeMap Java Library

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