|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jtreemap.swing.ColorProvider
net.sf.jtreemap.swing.provider.RandomColorProvider
public class RandomColorProvider
ColorProvider who choose the color between 13 predefined COLOURS.
Each value is associated to a color. If all the COLOURS are already associated the new value is associated to the first color (and so on...)
Nested Class Summary | |
---|---|
protected class |
RandomColorProvider.Legend
Panel with the legend |
Constructor Summary | |
---|---|
RandomColorProvider(JTreeMap jTreeMap)
Constructor |
Method Summary | |
---|---|
Color |
getColor(Value value)
get the associated color to the value. |
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 |
---|
public RandomColorProvider(JTreeMap jTreeMap)
jTreeMap
- jTreeMap to colorMethod Detail |
---|
public Color getColor(Value value)
ColorProvider
getColor
in class ColorProvider
value
- double value
public JPanel getLegendPanel()
ColorProvider
getLegendPanel
in class ColorProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |