Enum ColorSpaces
- All Implemented Interfaces:
Serializable,Comparable<ColorSpaces>
This enum makes ColorSpaces validation easier. Labels represent ColorSpace names as defined in the
"PDF Reference 1.4".
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()static ColorSpacesReturns the enum constant of this type with the specified name.static ColorSpaces[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Lab
-
CalRGB
-
CalGray
-
DeviceN
-
Indexed
-
I
-
Pattern
-
ICCBased
-
DeviceRGB
-
RGB
-
DeviceGray
-
G
-
DeviceCMYK
-
CMYK
-
Separation
-
-
Field Details
-
label
Name of the ColorSpace
-
-
Constructor Details
-
ColorSpaces
-
-
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
-
getLabel
- Returns:
- the label
-