public class RandomColorProvider extends ColorProvider
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...)
| Modifier and Type | Class and Description |
|---|---|
protected class |
RandomColorProvider.Legend
Panel with the legend
|
| Constructor and Description |
|---|
RandomColorProvider(JTreeMap jTreeMap)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(Value value)
get the associated color to the value.
|
JPanel |
getLegendPanel()
get a legend JPanel.
|
public RandomColorProvider(JTreeMap jTreeMap)
jTreeMap - jTreeMap to colorpublic Color getColor(Value value)
ColorProvidergetColor in class ColorProvidervalue - double valuepublic JPanel getLegendPanel()
ColorProvidergetLegendPanel in class ColorProviderCopyright © 2005–2019 Appendium - Portfolio Financing Platform. All rights reserved.