net.sf.jtreemap.swing
Class ColorProvider

java.lang.Object
  extended by net.sf.jtreemap.swing.ColorProvider
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HSBTreeMapColorProvider, RandomColorProvider, RedGreenColorProvider, UniqueColorProvider

public abstract class ColorProvider
extends java.lang.Object
implements java.io.Serializable

Abstract class with the methods who attribute color to the elements of JTreeMap.

See Also:
Serialized Form
 

Constructor Summary
ColorProvider()
           
 
Method Summary
abstract  java.awt.Color getColor(Value value)
          get the associated color to the value.
abstract  javax.swing.JPanel getLegendPanel()
          get a legend JPanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorProvider

public ColorProvider()
Method Detail

getColor

public abstract java.awt.Color getColor(Value value)
get the associated color to the value.

Parameters:
value - double value
Returns:
the associated color to the value

getLegendPanel

public abstract javax.swing.JPanel getLegendPanel()
get a legend JPanel.

Returns:
a legend JPanel