|
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 | |
|---|---|
Color |
getColor()
Get AWT color. |
static BufferedImage |
getColorChart(int width,
int height)
Get image showing all defined colors. |
static String |
getColorTable()
Get table of all defined colors. |
String |
getHTMLColorCode()
Get color code as used in HTML: #RRGGBB. |
String |
toString()
Get string representation. |
static ECCSMColor |
valueOf(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(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getHTMLColorCode()
#RRGGBB.
getHTMLColorCode in interface IColorpublic Color getColor()
getColor in interface IColorpublic String toString()
toString in class Enum<ECCSMColor>public static String getColorTable()
public static 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 | |||||||||