public enum Swatch extends java.lang.Enum<Swatch>
blue
.Theme
Enum Constant and Description |
---|
AMBER |
BLUE |
BLUE_GREY |
BROWN |
CYAN |
DEEP_ORANGE |
DEEP_PURPLE |
GREEN |
GREY |
INDIGO |
LIGHT_BLUE |
LIGHT_GREEN |
LIME |
ORANGE |
PINK |
PURPLE |
RED |
TEAL |
YELLOW |
Modifier and Type | Method and Description |
---|---|
void |
assignTo(javafx.scene.Scene scene)
Call this method to apply the selected swatch to the given Scene.
|
static Swatch |
getDefault()
Returns the hardcoded default swatch -
blue . |
static Swatch |
getRandom()
Returns a randomly selected swatch.
|
static Swatch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Swatch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Swatch BLUE
public static final Swatch CYAN
public static final Swatch DEEP_ORANGE
public static final Swatch DEEP_PURPLE
public static final Swatch GREEN
public static final Swatch INDIGO
public static final Swatch LIGHT_BLUE
public static final Swatch PINK
public static final Swatch PURPLE
public static final Swatch RED
public static final Swatch TEAL
public static final Swatch LIGHT_GREEN
public static final Swatch LIME
public static final Swatch YELLOW
public static final Swatch AMBER
public static final Swatch ORANGE
public static final Swatch BROWN
public static final Swatch GREY
public static final Swatch BLUE_GREY
public static Swatch[] values()
for (Swatch c : Swatch.values()) System.out.println(c);
public static Swatch valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void assignTo(javafx.scene.Scene scene)
scene
- The scene on which to apply the selected swatch.public static Swatch getDefault()
blue
.blue
.public static Swatch getRandom()