public class NeutralColorMapping extends Object implements ColorMapping
Constructor and Description |
---|
NeutralColorMapping() |
Modifier and Type | Method and Description |
---|---|
Color |
getColorFromValue(double value,
double minValue,
double maxValue)
This returns a color based on the given value.
|
public Color getColorFromValue(double value, double minValue, double maxValue)
ColorMapping
getColorFromValue
in interface ColorMapping
value
- the value you want to assign to a colorminValue
- the minimum value possiblemaxValue
- the maximum value possibleCopyright © 2019. All rights reserved.