public class ColorMaps extends Object
ColorMap1D instances| Modifier and Type | Method and Description |
|---|---|
static ColorMap1D |
clamping(ColorMap1D delegate)
Returns a
ColorMap1D that provides a clamping access
to the given delegate. |
static ColorMap1D |
create(Color... colors)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps. |
static ColorMap1D |
create(int... argbs)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps. |
static ColorMap1D |
create(int steps,
Color... colors)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colors |
static ColorMap1D |
create(int steps,
int... argbs)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colors |
static ColorMap1D |
create(int steps,
List<? extends Color> colors)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colors |
static ColorMap1D |
create(List<? extends Color> colors)
Creates a new
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps. |
static ColorMap1D |
nested(ColorMap1D delegate,
Color smaller,
Color larger)
Returns a
ColorMap1D that is "nested" between the given
colors. |
public static ColorMap1D clamping(ColorMap1D delegate)
ColorMap1D that provides a clamping access
to the given delegate. This means that arguments that are
passed to the ColorMap1D.getColor(double) method are
clamped to be in [0,1].delegate - The delegateColorMap1Dpublic static ColorMap1D nested(ColorMap1D delegate, Color smaller, Color larger)
ColorMap1D that is "nested" between the given
colors. This means that arguments that are passed to the
ColorMap1D.getColor(double) method will be mapped
to the smaller color when they are negative, and
to the larger color when they are greater than 1.0.delegate - The delegatesmaller - The color for values smaller than 0.0larger - The color for values larger than 1.0ColorMap1Dpublic static ColorMap1D create(Color... colors)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps.colors - The colorspublic static ColorMap1D create(List<? extends Color> colors)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps.colors - The colorspublic static ColorMap1D create(int... argbs)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally
interpolating between the colors with an unspecified number
of steps.argbs - The ARGB colorspublic static ColorMap1D create(int steps, Color... colors)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colorssteps - The number of interpolation stepscolors - The colorspublic static ColorMap1D create(int steps, List<? extends Color> colors)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colorssteps - The number of interpolation stepscolors - The colorspublic static ColorMap1D create(int steps, int... argbs)
ColorMap1D that maps a value between 0.0
and 1.0 (inclusive) to the specified color range, internally using
the given number of steps for interpolating between the colorssteps - The number of interpolation stepsargbs - The ARGB colorsCopyright © 2018. All rights reserved.