TMFileModelDraw

Kind of class:public class
Package:treemap.demo
Inherits from:TMComputeDrawAdapter
Version:2.5
Author:Christophe Bouthier [bouthier@loria.fr]
Package classpath:treemap.demo.TMFileModelDraw
File last modified:Friday, 28 December 2001, 20:56:22
The TMFileModelDraw class implements an example of a TMComputeDrawAdapter
for a TMFileModelNode.
It use the date of last modification as color,
and the name of the file as tooltip.

The color legend is :

    white for files less than a hour old
    green for files less than a day old
    yellow for files less than a week old
    orange for files less than a month old
    red for files less than a year old
    blue for files more than a year old

Instance methods

getColorTitleOfObject

public Paint getColorTitleOfObject(
Object node)

getFillingOfObject

public Paint getFillingOfObject(
Object node)

getTitleOfObject

public String getTitleOfObject(
Object node)

getTooltipOfObject

public String getTooltipOfObject(
Object node)

isCompatibleWithObject

public boolean isCompatibleWithObject(
Object node)