public class ValueColorSchemes extends Object
ValueColorSchemes class contains several useful methods
to associate a ValueColorScheme with a ColorScheme.
It cannot be instantiated.
The ValueColorSchemes class has preset colors that represent
a color scheme that can be associated with any range to create a value range.
There are various predefined scales that can be found in ColorScheme.
| Modifier and Type | Method and Description |
|---|---|
static ValueColorScheme |
boneScale(Range range)
Returns a color scheme that varies linearly (black:dark blue:blue:light blue:white) for values within range.
|
static ValueColorScheme |
coolScale(Range range)
Returns a color scheme that varies linearly (cyan:magenta) for values within range.
|
static ValueColorScheme |
copperScale(Range range)
Returns a color scheme that varies linearly (black:dark brown:brown:light brown:tan) for values within range.
|
static ValueColorScheme |
grayScale(Range range)
Returns a color scheme that varies linearly (black:white) for values within range.
|
static ValueColorScheme |
hotScale(Range range)
Returns a color scheme that varies linearly (dark red:red:yellow:white) for values within range.
|
static ValueColorScheme |
jetScale(Range range)
Returns a color scheme that varies linearly (dark blue:blue:cyan:yellow:red:dark red) for values within range.
|
static ValueColorScheme |
pinkScale(Range range)
Returns a color scheme that varies linearly (dark red:dark pink:light pink) for values within range.
|
static ValueColorScheme |
RangeGradient(Range range,
ArrayList<Color> colors,
ArrayList<Double> percentages)
Returns a ValueColorScheme that varies linearly from color to color based on percentage.
|
static ValueColorScheme |
schemeFor(ColorScheme color,
Range range)
Creates a Value scheme associated with the Color scheme and range.
|
static ValueColorScheme |
singleRangeGradient(Range range,
Color minValueColor,
Color maxValueColor,
Color nanColor)
Returns a ValueColorScheme that varies linearly from one color to the next, based on range.
|
static ValueColorScheme |
springScale(Range range)
Returns a color scheme that varies linearly (magenta:yellow) for values within range.
|
public static ValueColorScheme schemeFor(ColorScheme color, Range range)
ColorScheme is handled as gray scale.color - the color scheme to create a value scheme forrange - associates colors from a color scheme for different values within the range, can not be nullpublic static ValueColorScheme grayScale(Range range)
range - can not be null.public static ValueColorScheme jetScale(Range range)
range - can not be nullpublic static ValueColorScheme hotScale(Range range)
range - can not be nullpublic static ValueColorScheme coolScale(Range range)
range - can not be nullpublic static ValueColorScheme springScale(Range range)
range - can not be nullpublic static ValueColorScheme boneScale(Range range)
range - can not be nullpublic static ValueColorScheme copperScale(Range range)
range - can not be nullpublic static ValueColorScheme pinkScale(Range range)
range - can not be nullpublic static ValueColorScheme singleRangeGradient(Range range, Color minValueColor, Color maxValueColor, Color nanColor)
range - can not be nullminValueColor - color that will be used for the lowest value in range. Can not be null.maxValueColor - color that will be used for the highest value in range. Can not be null.nanColor - color to be returned when value is NaN.public static ValueColorScheme RangeGradient(Range range, ArrayList<Color> colors, ArrayList<Double> percentages)
range - can not be nullcolors - an ArrayListpercentages - an ArrayListCopyright © 2012–2014 Brookhaven National Laboratory, University of Michigan. All rights reserved.