cz.cuni.jagrlib.piece
Enum Radiosity.Colors

java.lang.Object
  extended by java.lang.Enum<Radiosity.Colors>
      extended by cz.cuni.jagrlib.piece.Radiosity.Colors
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Radiosity.Colors>
Enclosing class:
Radiosity

public static enum Radiosity.Colors
extends java.lang.Enum<Radiosity.Colors>

Supported color modes.


Enum Constant Summary
BLUE
          Compute the blue component (only blue component is used).
BLUE_GRAY
          Compute the blue component (all components are the same -> result is gray).
GREEN
          Compute the green component (only green component is used).
GREEN_GRAY
          Compute the green component (all components are the same -> result is gray).
RED
          Compute the red component (only red component is used).
RED_GRAY
          Compute the red component (all components are the same -> result is gray).
RGB
          Use all three components (R - red, G - green, B - blue).
 
Method Summary
static Radiosity.Colors valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Radiosity.Colors[] 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

RGB

public static final Radiosity.Colors RGB
Use all three components (R - red, G - green, B - blue).


RED

public static final Radiosity.Colors RED
Compute the red component (only red component is used).


GREEN

public static final Radiosity.Colors GREEN
Compute the green component (only green component is used).


BLUE

public static final Radiosity.Colors BLUE
Compute the blue component (only blue component is used).


RED_GRAY

public static final Radiosity.Colors RED_GRAY
Compute the red component (all components are the same -> result is gray).


GREEN_GRAY

public static final Radiosity.Colors GREEN_GRAY
Compute the green component (all components are the same -> result is gray).


BLUE_GRAY

public static final Radiosity.Colors BLUE_GRAY
Compute the blue component (all components are the same -> result is gray).

Method Detail

values

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

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

valueOf

public static Radiosity.Colors 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