net.sf.jtreemap.swing
Class ColorProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorProvider
public ColorProvider()
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.