Package org.verapdf.features.tools
Enum ColorComponent.Colors
- java.lang.Object
-
- java.lang.Enum<ColorComponent.Colors>
-
- org.verapdf.features.tools.ColorComponent.Colors
-
- All Implemented Interfaces:
Serializable
,Comparable<ColorComponent.Colors>
- Enclosing class:
- ColorComponent
public static enum ColorComponent.Colors extends Enum<ColorComponent.Colors>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
int
getPosition()
static ColorComponent.Colors
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorComponent.Colors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAY
public static final ColorComponent.Colors GRAY
-
RED
public static final ColorComponent.Colors RED
-
GREEN
public static final ColorComponent.Colors GREEN
-
BLUE
public static final ColorComponent.Colors BLUE
-
CYAN
public static final ColorComponent.Colors CYAN
-
MAGENTA
public static final ColorComponent.Colors MAGENTA
-
YELLOW
public static final ColorComponent.Colors YELLOW
-
BLACK
public static final ColorComponent.Colors BLACK
-
-
Method Detail
-
values
public static ColorComponent.Colors[] 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.Colors c : ColorComponent.Colors.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.Colors 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
-
getPosition
public int getPosition()
-
getName
public String getName()
-
-