Package com.illumon.iris.gui.color
Enum ColorPaletteArray.Palette
- All Implemented Interfaces:
Serializable
,Comparable<ColorPaletteArray.Palette>
,java.lang.constant.Constable
- Enclosing class:
- ColorPaletteArray
public static enum ColorPaletteArray.Palette extends Enum<ColorPaletteArray.Palette>
Pre-made color palettes.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVAFX
Colors used by JavaFX plotting.MATLAB
Colors used in Matlab plotting.MATPLOTLIB
Colors used in Matplotlib plotting. -
Method Summary
Modifier and Type Method Description Color[]
getColors()
Gets the colors in this Palette.static ColorPaletteArray.Palette
ofString(String name)
Gets the Palette corresponding to thename
.static ColorPaletteArray.Palette
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorPaletteArray.Palette[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-