Enum Class ColorPicker.Format

java.lang.Object
java.lang.Enum<ColorPicker.Format>
limn.components.ColorPicker.Format
All Implemented Interfaces:
Serializable, Comparable<ColorPicker.Format>, Constable
Enclosing class:
ColorPicker

public static enum ColorPicker.Format extends Enum<ColorPicker.Format>
Which numeric model the channel row is showing.

There is no HSL, on purpose. It is a different model from HSV, not another spelling of it (its saturation disagrees with HSV's everywhere except the extremes), so offering both means the numbers change when you switch tabs while the colour has not, which reads as the picker losing your colour. One cylindrical model, and it is the one this picker's own field is built on and the one every graphics and game tool speaks: HSV, spelled HSB by Photoshop and the macOS picker (Brightness and Value are the same axis).

  • Enum Constant Details

    • RGB

      public static final ColorPicker.Format RGB
      Red, green, blue in 0–255.
    • HSV

      public static final ColorPicker.Format HSV
      Hue in degrees, saturation and value in percent, the axes of the field itself.
    • CMYK

      public static final ColorPicker.Format CMYK
      Cyan, magenta, yellow, key in percent. Naive, not colour-managed.
  • Method Details

    • values

      public static ColorPicker.Format[] 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 ColorPicker.Format 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