- 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 encodeDensityChartFXdata values. Color gradient should contain two or more stops with offsets between 0.0 and 1.0. TheDensityChartFXwill apply a linear interpolation between colors with a fraction calculated from the value and lower/upper bound of theDensityChartFXZ axis.- See Also:
LinearGradient
-
-
Field Summary
Fields Modifier and Type Field Description static DensityChartFX.ColorGradientBLACK_WHITEBlack to white gradient.static DensityChartFX.ColorGradientINVERTED_RAINBOWstatic DensityChartFX.ColorGradientJET_COLORJet color gradient.static DensityChartFX.ColorGradientRAINBOWRainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.static DensityChartFX.ColorGradientSUNRISERed, yellow, white.static DensityChartFX.ColorGradientWHITE_BLACKWhite 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()
-
-