public class GradientColorCoding extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GradientColorCoding.ColorGradient
List of supported color gradient types.
|
Constructor and Description |
---|
GradientColorCoding() |
Modifier and Type | Method and Description |
---|---|
static Color |
findGradientColor(Double aValue,
Double aMinValue,
Double aMaxValue,
GradientColorCoding.ColorGradient colorGradient,
boolean positiveValuesOnly)
Returns the gradient color using the currently selected color gradient.
|
public static Color findGradientColor(Double aValue, Double aMinValue, Double aMaxValue, GradientColorCoding.ColorGradient colorGradient, boolean positiveValuesOnly)
aValue
- the value to find the gradient color foraMinValue
- the min valueaMaxValue
- the max valuecolorGradient
- the color gradient to usepositiveValuesOnly
- if true only positive values are expected and
the middle gradient color is used for the halfway point between the min
and max values, if false the middle gradient color is used for values
around zeroCopyright © 2016. All rights reserved.