Package limn.components
Enum Class ColorPicker.Format
- All Implemented Interfaces:
Serializable,Comparable<ColorPicker.Format>,Constable
- Enclosing class:
ColorPicker
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPicker.FormatReturns the enum constant of this class with the specified name.static ColorPicker.Format[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RGB
Red, green, blue in 0–255. -
HSV
Hue in degrees, saturation and value in percent, the axes of the field itself. -
CMYK
Cyan, magenta, yellow, key in percent. Naive, not colour-managed.
-
-
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
-