public class NumberColorMaps extends Object
NumberColorMap,
a set standard utilities and a directory for color maps.| Modifier and Type | Field and Description |
|---|---|
static NumberColorMap |
BONE
BONE ranges from black to white passing from blue.
|
static NumberColorMap |
GRAY
GRAY ranges from black to white.
|
static NumberColorMap |
HOT
HOT ranges from black to white passing from red and yellow.
|
static NumberColorMap |
HSV
HSV goes through the color wheel: red, yellow, green, cyan, blue, magenta
and back to red.
|
static NumberColorMap |
JET
JET ranges from blue to red, going through cyan and yellow.
|
| Constructor and Description |
|---|
NumberColorMaps() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,NumberColorMap> |
getRegisteredColorSchemes()
A set of registered color maps available to all applications.
|
static NumberColorMapInstance |
optimize(NumberColorMapInstance instance,
Range range)
Returns a new optimized instance created by pre-calculating the colors
in the given range and storing them in an array.
|
static NumberColorMapInstance |
optimize(NumberColorMapInstance instance,
Range oldRange,
Range newRange)
TODO: what is this about?
|
public static final NumberColorMap JET
public static final NumberColorMap GRAY
public static final NumberColorMap BONE
public static final NumberColorMap HOT
public static final NumberColorMap HSV
public static Map<String,NumberColorMap> getRegisteredColorSchemes()
public static NumberColorMapInstance optimize(NumberColorMapInstance instance, Range range)
An optimized map will trade off precision for speed. The color will not change smoothly but will be quantized to the size of the array.
instance - the color map instance to optimizerange - the range of values to optimizepublic static NumberColorMapInstance optimize(NumberColorMapInstance instance, Range oldRange, Range newRange)
instance - oldRange - newRange - Copyright © 2012–2014 Brookhaven National Laboratory, University of Michigan. All rights reserved.