- java.lang.Object
-
- eu.ess.xaos.ui.plot.DensityChartFX.ColorGradient
-
- Enclosing class:
- DensityChartFX<X,Y>
public static final class DensityChartFX.ColorGradient extends Object
Color gradient class provides colors to encodeDensityChartFX
data values. Color gradient should contain two or more stops with offsets between 0.0 and 1.0. TheDensityChartFX
will apply a linear interpolation between colors with a fraction calculated from the value and lower/upper bound of theDensityChartFX
Z axis.- See Also:
LinearGradient
-
-
Field Summary
Fields Modifier and Type Field Description static DensityChartFX.ColorGradient
BLACK_WHITE
Black to white gradient.static DensityChartFX.ColorGradient
INVERTED_RAINBOW
static DensityChartFX.ColorGradient
JET_COLOR
Jet color gradient.static DensityChartFX.ColorGradient
RAINBOW
Rainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.static DensityChartFX.ColorGradient
SUNRISE
Red, yellow, white.static DensityChartFX.ColorGradient
WHITE_BLACK
White to black gradient.
-
Constructor Summary
Constructors Constructor Description ColorGradient(Stop... stops)
Creates a new instance of ColorGradient.
-
-
-
Field Detail
-
BLACK_WHITE
public static final DensityChartFX.ColorGradient BLACK_WHITE
Black to white gradient.
-
INVERTED_RAINBOW
public static final DensityChartFX.ColorGradient INVERTED_RAINBOW
-
JET_COLOR
public static final DensityChartFX.ColorGradient JET_COLOR
Jet color gradient.
-
RAINBOW
public static final DensityChartFX.ColorGradient RAINBOW
Rainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.
-
SUNRISE
public static final DensityChartFX.ColorGradient SUNRISE
Red, yellow, white.
-
WHITE_BLACK
public static final DensityChartFX.ColorGradient WHITE_BLACK
White to black gradient.
-
-
Constructor Detail
-
ColorGradient
public ColorGradient(Stop... stops)
Creates a new instance of ColorGradient.- Parameters:
stops
- The gradient's color specification; should contain at least two stops with offsets between 0.0 and 1.0- See Also:
getStops()
-
-
Method Detail
-
getStops
public List<Stop> getStops()
Returns the gradient stops.- Returns:
- Gradient stops.
- See Also:
LinearGradient.getStops()
-
-