Package org.verapdf.features.tools
Enum ColorComponent
- java.lang.Object
-
- java.lang.Enum<ColorComponent>
-
- org.verapdf.features.tools.ColorComponent
-
- All Implemented Interfaces:
Serializable
,Comparable<ColorComponent>
public enum ColorComponent extends Enum<ColorComponent>
- Author:
- Maksim Bezrukov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColorComponent.Colors
-
Enum Constant Summary
Enum Constants Enum Constant Description CMKY_COMPONENTS
GRAY_COMPONENTS
RGB_COMPONENTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
createAttributesMap(double[] componentValues)
EnumSet<ColorComponent.Colors>
getColors()
int
getSize()
static ColorComponent
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorComponent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAY_COMPONENTS
public static final ColorComponent GRAY_COMPONENTS
-
RGB_COMPONENTS
public static final ColorComponent RGB_COMPONENTS
-
CMKY_COMPONENTS
public static final ColorComponent CMKY_COMPONENTS
-
-
Method Detail
-
values
public static ColorComponent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColorComponent c : ColorComponent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorComponent valueOf(String name)
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
-
getSize
public int getSize()
-
getColors
public EnumSet<ColorComponent.Colors> getColors()
-
-