TUM CCSM Commons

edu.tum.cs.commons.color
Enum ECCSMColor

java.lang.Object
  extended by java.lang.Enum<ECCSMColor>
      extended by edu.tum.cs.commons.color.ECCSMColor
All Implemented Interfaces:
IColor, java.io.Serializable, java.lang.Comparable<ECCSMColor>

public enum ECCSMColor
extends java.lang.Enum<ECCSMColor>
implements IColor

Colors of the CCSM CI.

Version:
$Rev: 26283 $
Author:
Florian Deissenboeck, $Author: juergens $
Rating:
GREEN Hash: BBF7FFF92CC252EB7D7E4BE16C822AD2

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

LIGHT_BLUE

public static final ECCSMColor LIGHT_BLUE
Light blue


BLUE

public static final ECCSMColor BLUE
Blue


PURPLE

public static final ECCSMColor PURPLE
Purple


DARK_BLUE

public static final ECCSMColor DARK_BLUE
Dark Blue


GREEN

public static final ECCSMColor GREEN
Green


YELLOW

public static final ECCSMColor YELLOW
Yellow


RED

public static final ECCSMColor RED
Red


DARK_RED

public static final ECCSMColor DARK_RED
Dark red


LIGHT_GRAY

public static final ECCSMColor LIGHT_GRAY
Light Gray


DARK_GRAY

public static final ECCSMColor DARK_GRAY
Dark Gray

Method Detail

values

public static ECCSMColor[] 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 (ECCSMColor c : ECCSMColor.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ECCSMColor valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getHTMLColorCode

public java.lang.String getHTMLColorCode()
Get color code as used in HTML: #RRGGBB.

Specified by:
getHTMLColorCode in interface IColor

getColor

public java.awt.Color getColor()
Get AWT color.

Specified by:
getColor in interface IColor

toString

public java.lang.String toString()
Get string representation.

Overrides:
toString in class java.lang.Enum<ECCSMColor>

getColorTable

public static java.lang.String getColorTable()
Get table of all defined colors.


getColorChart

public static java.awt.image.BufferedImage getColorChart(int width,
                                                         int height)
Get image showing all defined colors. If image height is sufficient, color information text is shown.

Parameters:
width - image width
height - image height

TUM CCSM Commons

TUM CCSM Commons - 2.7