public enum ECCSMColor extends java.lang.Enum<ECCSMColor> implements IColor
Enum Constant and Description |
---|
BLUE
Blue
|
DARK_BLUE
Dark Blue
|
DARK_GRAY
Dark Gray
|
DARK_RED
Dark red
|
GREEN
Green
|
LIGHT_BLUE
Light blue
|
LIGHT_GRAY
Light Gray
|
PURPLE
Purple
|
RED
Red
|
YELLOW
Yellow
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Get AWT color.
|
static java.awt.image.BufferedImage |
getColorChart(int width,
int height)
Get image showing all defined colors.
|
static java.lang.String |
getColorTable()
Get table of all defined colors.
|
java.lang.String |
getHTMLColorCode()
Get color code as used in HTML:
#RRGGBB . |
java.lang.String |
toString()
Get string representation.
|
static ECCSMColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ECCSMColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECCSMColor LIGHT_BLUE
public static final ECCSMColor BLUE
public static final ECCSMColor PURPLE
public static final ECCSMColor DARK_BLUE
public static final ECCSMColor GREEN
public static final ECCSMColor YELLOW
public static final ECCSMColor RED
public static final ECCSMColor DARK_RED
public static final ECCSMColor LIGHT_GRAY
public static final ECCSMColor DARK_GRAY
public static ECCSMColor[] values()
for (ECCSMColor c : ECCSMColor.values()) System.out.println(c);
public static ECCSMColor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getHTMLColorCode()
#RRGGBB
.getHTMLColorCode
in interface IColor
public java.lang.String toString()
toString
in class java.lang.Enum<ECCSMColor>
public static java.lang.String getColorTable()
public static java.awt.image.BufferedImage getColorChart(int width, int height)
width
- image widthheight
- image height