public abstract class ColorScheme extends Object
Constructor and Description |
---|
ColorScheme() |
Modifier and Type | Method and Description |
---|---|
abstract int |
color(double value,
Display ranges)
Calculate the color for the value according to the ranges and puts it
into the colors buffer.
|
static ColorScheme |
multipleRangeGradient(Color lowerDisplayColor,
Color lowerAlarmColor,
Color lowerWarningColor,
Color upperWarningColor,
Color upperAlarmColor,
Color upperDisplayColor) |
static ColorScheme |
singleRangeGradient(Color minValueColor,
Color maxValueColor)
A simple color scheme that uses only one gradient for the whole
display range.
|
static ColorScheme |
singleRangeGradient(Color minValueColor,
Color maxValueColor,
Color nanColor) |
public abstract int color(double value, Display ranges)
value
- the value to colorranges
- the display rangespublic static ColorScheme singleRangeGradient(Color minValueColor, Color maxValueColor)
minValueColor
- color for the minimum value in the display rangemaxValueColor
- color for the maximum value in the display rangepublic static ColorScheme singleRangeGradient(Color minValueColor, Color maxValueColor, Color nanColor)
Copyright © 2010–2015. All rights reserved.