net.sf.jtreemap.swing
Class ColorProvider

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

public abstract class ColorProvider
extends Object
implements Serializable

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

Author:
Laurent DUTHEIL
See Also:
Serialized Form

Constructor Summary
ColorProvider()
           
 
Method Summary
abstract  Color getColor(Value value)
          get the associated color to the value.
abstract  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 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 JPanel getLegendPanel()
get a legend JPanel.

Returns:
a legend JPanel


Copyright © 2012. All Rights Reserved.