caltool.schedule
Enum StandardColor

java.lang.Object
  extended by java.lang.Enum<StandardColor>
      extended by caltool.schedule.StandardColor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StandardColor>

public enum StandardColor
extends java.lang.Enum<StandardColor>

A StandardColor is one of a fixed set of possibilities for use in color coding a cateogry. The possible values are "Black", "Brown", "Red", "Orange", "Yellow", "Green", "Blue", or "Purple".


Enum Constant Summary
Black
          One of the built-in category colors
Blue
          One of the built-in category colors
Brown
          One of the built-in category colors
Green
          One of the built-in category colors
Orange
          One of the built-in category colors
Purple
          One of the built-in category colors
Red
          One of the built-in category colors
Yellow
          One of the built-in category colors
 
Method Summary
static StandardColor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StandardColor[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Black

public static final StandardColor Black
One of the built-in category colors


Brown

public static final StandardColor Brown
One of the built-in category colors


Red

public static final StandardColor Red
One of the built-in category colors


Orange

public static final StandardColor Orange
One of the built-in category colors


Yellow

public static final StandardColor Yellow
One of the built-in category colors


Green

public static final StandardColor Green
One of the built-in category colors


Blue

public static final StandardColor Blue
One of the built-in category colors


Purple

public static final StandardColor Purple
One of the built-in category colors

Method Detail

values

public static final StandardColor[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(StandardColor c : StandardColor.values())
        System.out.println(c);

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

valueOf

public static StandardColor 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