Enum Class ColorPaletteArray.Palette

java.lang.Object
java.lang.Enum<ColorPaletteArray.Palette>
io.deephaven.gui.color.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.
  • Enum Constant Details

  • Method Details

    • values

      public static ColorPaletteArray.Palette[] 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

      public static ColorPaletteArray.Palette valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getColors

      public Color[] getColors()
      Gets the colors in this Palette.
      Returns:
      array of colors in this Palette.
    • ofString

      public static ColorPaletteArray.Palette ofString(String name)
      Gets the Palette corresponding to the name.
      Parameters:
      name - case insensitive Palette descriptor
      Returns:
      Palette corresponding to the name
      Throws:
      IllegalArgumentException - name can not be null