org.epics.pvmanager.extra
Class ColorScheme
java.lang.Object
org.epics.pvmanager.extra.ColorScheme
public abstract class ColorScheme
- extends Object
- Author:
- carcassi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorScheme
public ColorScheme()
color
public abstract int color(double value,
Display ranges)
- Calculate the color for the value according to the ranges and puts it
into the colors buffer.
- Parameters:
value
- the value to colorranges
- the display ranges
- Returns:
- the RGB color
singleRangeGradient
public static ColorScheme singleRangeGradient(Color minValueColor,
Color maxValueColor)
- A simple color scheme that uses only one gradient for the whole
display range.
- Parameters:
minValueColor
- color for the minimum value in the display rangemaxValueColor
- color for the maximum value in the display range
- Returns:
singleRangeGradient
public static ColorScheme singleRangeGradient(Color minValueColor,
Color maxValueColor,
Color nanColor)
multipleRangeGradient
public static ColorScheme multipleRangeGradient(Color lowerDisplayColor,
Color lowerAlarmColor,
Color lowerWarningColor,
Color upperWarningColor,
Color upperAlarmColor,
Color upperDisplayColor)
Copyright © 2011. All Rights Reserved.