Package net.sf.jasperreports.engine.type
Enum ColorEnum
- java.lang.Object
-
- java.lang.Enum<ColorEnum>
-
- net.sf.jasperreports.engine.type.ColorEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ColorEnum>,NamedEnum,NamedValueEnum<Color>
public enum ColorEnum extends Enum<ColorEnum> implements NamedValueEnum<Color>
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorEnumgetByColor(Color color)static ColorEnumgetByName(String name)ColorgetColor()StringgetName()ColorgetValue()static ColorEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ColorEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final ColorEnum BLACK
-
BLUE
public static final ColorEnum BLUE
-
CYAN
public static final ColorEnum CYAN
-
DARK_GRAY
public static final ColorEnum DARK_GRAY
-
GRAY
public static final ColorEnum GRAY
-
GREEN
public static final ColorEnum GREEN
-
LIGHT_GRAY
public static final ColorEnum LIGHT_GRAY
-
MAGENTA
public static final ColorEnum MAGENTA
-
ORANGE
public static final ColorEnum ORANGE
-
PINK
public static final ColorEnum PINK
-
RED
public static final ColorEnum RED
-
YELLOW
public static final ColorEnum YELLOW
-
WHITE
public static final ColorEnum WHITE
-
-
Method Detail
-
values
public static ColorEnum[] 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 (ColorEnum c : ColorEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorEnum 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
-
getColor
public final Color getColor()
-
getValue
public final Color getValue()
- Specified by:
getValuein interfaceNamedValueEnum<Color>
-
-