pi
Enum Color

Object
  extended by Enum<Color>
      extended by pi.Color
All Implemented Interfaces:
java.io.Serializable, Comparable<Color>

public enum Color
extends Enum<Color>

Colors


Enum Constant Summary
BLACK
           
BLUE
           
BROWN
           
CYAN
           
GRAY
           
GREEN
           
LIGHT_BLUE
           
LIGHT_GRAY
           
LIME
           
MAGENTA
           
ORANGE
           
PINK
           
PURPLE
           
RED
           
WHITE
           
YELLOW
           
 
Method Summary
static Color valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Color[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WHITE

public static final Color WHITE

ORANGE

public static final Color ORANGE

MAGENTA

public static final Color MAGENTA

LIGHT_BLUE

public static final Color LIGHT_BLUE

YELLOW

public static final Color YELLOW

LIME

public static final Color LIME

PINK

public static final Color PINK

GRAY

public static final Color GRAY

LIGHT_GRAY

public static final Color LIGHT_GRAY

CYAN

public static final Color CYAN

PURPLE

public static final Color PURPLE

BLUE

public static final Color BLUE

BROWN

public static final Color BROWN

GREEN

public static final Color GREEN

RED

public static final Color RED

BLACK

public static final Color BLACK
Method Detail

values

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

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

valueOf

public static Color 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 name
NullPointerException - if the argument is null