|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ECCSMColor>
edu.tum.cs.commons.color.ECCSMColor
public enum ECCSMColor
Colors of the CCSM CI.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getHTMLColorCode()
#RRGGBB
.
getHTMLColorCode
in interface IColor
public java.awt.Color getColor()
getColor
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
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |