public interface ColorProvider
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor(float weight,
int value)
The implementing class must return an appropriate color for the supplied
weight
|
java.awt.Color getColor(float weight, int value)
weight
- The weight for which the color should be returned range is
0 to 1 for relative weight choicesvalue
- The value for providers that work on absolute numbers