Package de.gsi.chart.renderer.spi.utils
Class ColorGradient
- java.lang.Object
-
- de.gsi.chart.renderer.spi.utils.ColorGradient
-
public class ColorGradient extends java.lang.Object- Author:
- braeun
-
-
Field Summary
Fields Modifier and Type Field Description static ColorGradientBLACK_WHITEBlack to white gradient.static ColorGradientBLUEREDBLUE -> PURPLE -> REDstatic ColorGradientDEFAULTstatic ColorGradientHOTBlack to white thermal-inspired gradient.static ColorGradientJETcolour scheme 'jet'static ColorGradientPINKpink inspiredstatic ColorGradientRAINBOWRainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.static ColorGradientSUNRISERed, yellow, white.static ColorGradientTOPOcolour scheme 'topography'static ColorGradientTOPO_EXTcolour scheme 'extended topography'static ColorGradientVIRIDISstatic ColorGradientWHITE_BLACKWhite to black gradient.
-
Constructor Summary
Constructors Constructor Description ColorGradient(java.lang.String name, java.util.List<javafx.scene.paint.Stop> stops)Creates a new instance of ColorGradient.ColorGradient(java.lang.String name, javafx.scene.paint.Stop... stops)Creates a new instance of ColorGradient.ColorGradient(java.util.List<javafx.scene.paint.Stop> stops)Creates a new instance of ColorGradient.**ColorGradient(javafx.scene.paint.Stop... stops)Creates a new instance of ColorGradient.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<ColorGradient>colorGradients()java.util.List<javafx.scene.paint.Stop>getStops()Returns the gradient stops.java.lang.StringtoString()
-
-
-
Field Detail
-
RAINBOW
public static final ColorGradient RAINBOW
Rainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.
-
JET
public static final ColorGradient JET
colour scheme 'jet'
-
TOPO
public static final ColorGradient TOPO
colour scheme 'topography'
-
TOPO_EXT
public static final ColorGradient TOPO_EXT
colour scheme 'extended topography'
-
WHITE_BLACK
public static final ColorGradient WHITE_BLACK
White to black gradient.
-
BLACK_WHITE
public static final ColorGradient BLACK_WHITE
Black to white gradient.
-
HOT
public static final ColorGradient HOT
Black to white thermal-inspired gradient.
-
BLUERED
public static final ColorGradient BLUERED
BLUE -> PURPLE -> RED
-
PINK
public static final ColorGradient PINK
pink inspired
-
SUNRISE
public static final ColorGradient SUNRISE
Red, yellow, white.
-
VIRIDIS
public static final ColorGradient VIRIDIS
-
DEFAULT
public static final ColorGradient DEFAULT
-
-
Constructor Detail
-
ColorGradient
public ColorGradient(java.util.List<javafx.scene.paint.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()
-
ColorGradient
public ColorGradient(javafx.scene.paint.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()
-
ColorGradient
public ColorGradient(java.lang.String name, java.util.List<javafx.scene.paint.Stop> stops)Creates a new instance of ColorGradient.- Parameters:
name- name of gradientstops- the gradient's color specification; should contain at least two stops with offsets between 0.0 and 1.0- See Also:
getStops()
-
ColorGradient
public ColorGradient(java.lang.String name, javafx.scene.paint.Stop... stops)Creates a new instance of ColorGradient.- Parameters:
name- name of gradientstops- 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 java.util.List<javafx.scene.paint.Stop> getStops()
Returns the gradient stops.- Returns:
- list of stop colours
- See Also:
LinearGradient.getStops()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
colorGradients
public static java.util.List<ColorGradient> colorGradients()
-
-