Package io.deephaven.gui.color
Enum Class ColorPaletteArray.Palette
- All Implemented Interfaces:
Serializable
,Comparable<ColorPaletteArray.Palette>
,java.lang.constant.Constable
- Enclosing class:
- ColorPaletteArray
Pre-made color palettes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionColors used by JavaFX plotting.Colors used in Matlab plotting.Colors used in Matplotlib plotting. -
Method Summary
Modifier and TypeMethodDescriptionColor[]
Gets the colors in this Palette.static ColorPaletteArray.Palette
Gets the Palette corresponding to thename
.static ColorPaletteArray.Palette
Returns the enum constant of this class with the specified name.static ColorPaletteArray.Palette[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAVAFX
Colors used by JavaFX plotting. -
MATLAB
Colors used in Matlab plotting. -
MATPLOTLIB
Colors used in Matplotlib plotting.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getColors
Gets the colors in this Palette.- Returns:
- array of colors in this Palette.
-
ofString
Gets the Palette corresponding to thename
.- Parameters:
name
- case insensitive Palette descriptor- Returns:
- Palette corresponding to the
name
- Throws:
IllegalArgumentException
-name
can not be null
-