cz.cuni.jagrlib.testing
Enum RadiosityHierarch.Colors

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

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

Supported colors.


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


RED

public static final RadiosityHierarch.Colors RED
Compute with red component (only red component is used).


GREEN

public static final RadiosityHierarch.Colors GREEN
Compute with green component (only green component is used).


BLUE

public static final RadiosityHierarch.Colors BLUE
Compute with blue component (only blue component is used).


RED_GRAY

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


GREEN_GRAY

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


BLUE_GRAY

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

Method Detail

values

public static RadiosityHierarch.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 (RadiosityHierarch.Colors c : RadiosityHierarch.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 RadiosityHierarch.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