org.jraf.jlibibuddy
Enum IBuddy.Color

java.lang.Object
  extended by java.lang.Enum<IBuddy.Color>
      extended by org.jraf.jlibibuddy.IBuddy.Color
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IBuddy.Color>
Enclosing class:
IBuddy

public static enum IBuddy.Color
extends java.lang.Enum<IBuddy.Color>

Different colors for the head (all possible combinations of the blue, green and red LEDs).


Enum Constant Summary
BLUE
           
CYAN
           
GREEN
           
OFF
           
PURPLE
           
RED
           
WHITE
           
YELLOW
           
 
Method Summary
static IBuddy.Color valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IBuddy.Color[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFF

public static final IBuddy.Color OFF

RED

public static final IBuddy.Color RED

GREEN

public static final IBuddy.Color GREEN

BLUE

public static final IBuddy.Color BLUE

YELLOW

public static final IBuddy.Color YELLOW

PURPLE

public static final IBuddy.Color PURPLE

CYAN

public static final IBuddy.Color CYAN

WHITE

public static final IBuddy.Color WHITE
Method Detail

values

public static IBuddy.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 (IBuddy.Color c : IBuddy.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 IBuddy.Color 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


Copyright © 2008 JRAF.org. All Rights Reserved.