public class ColorGradient extends Object
| Modifier and Type | Field and Description |
|---|---|
static ColorGradient |
BLACK_WHITE
Black to white gradient.
|
static ColorGradient |
BLUERED
BLUE -> PURPLE -> RED
|
static ColorGradient |
DEFAULT |
static ColorGradient |
HOT
Black to white thermal-inspired gradient.
|
static ColorGradient |
JET
colour scheme 'jet'
|
static ColorGradient |
PINK
pink inspired
|
static ColorGradient |
RAINBOW
Rainbow colors gradient: violet, indigo, blue, green, yellow, orange and red.
|
static ColorGradient |
SUNRISE
Red, yellow, white.
|
static ColorGradient |
TOPO
colour scheme 'topography'
|
static ColorGradient |
TOPO_EXT
colour scheme 'extended topography'
|
static ColorGradient |
VIRIDIS |
static ColorGradient |
WHITE_BLACK
White to black gradient.
|
| Constructor and Description |
|---|
ColorGradient(List<Stop> stops)
Creates a new instance of ColorGradient.**
|
ColorGradient(Stop... stops)
Creates a new instance of ColorGradient.
|
ColorGradient(String name,
List<Stop> stops)
Creates a new instance of ColorGradient.
|
ColorGradient(String name,
Stop... stops)
Creates a new instance of ColorGradient.
|
| Modifier and Type | Method and Description |
|---|---|
static List<ColorGradient> |
colorGradients() |
List<Stop> |
getStops()
Returns the gradient stops.
|
String |
toString() |
public static final ColorGradient RAINBOW
public static final ColorGradient JET
public static final ColorGradient TOPO
public static final ColorGradient TOPO_EXT
public static final ColorGradient WHITE_BLACK
public static final ColorGradient BLACK_WHITE
public static final ColorGradient HOT
public static final ColorGradient BLUERED
public static final ColorGradient PINK
public static final ColorGradient SUNRISE
public static final ColorGradient VIRIDIS
public static final ColorGradient DEFAULT
public ColorGradient(List<Stop> stops)
stops - the gradient's color specification; should contain at least* two stops with offsets between 0.0 and
1.0*getStops()public ColorGradient(Stop... stops)
stops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and
1.0getStops()public ColorGradient(String name, List<Stop> stops)
name - name of gradientstops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and
1.0getStops()public ColorGradient(String name, Stop... stops)
name - name of gradientstops - the gradient's color specification; should contain at least two stops with offsets between 0.0 and
1.0getStops()public List<Stop> getStops()
LinearGradient.getStops()public static List<ColorGradient> colorGradients()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.