org.jvnet.substance.color
Enum ColorSchemeEnum

java.lang.Object
  extended by java.lang.Enum<ColorSchemeEnum>
      extended by org.jvnet.substance.color.ColorSchemeEnum
All Implemented Interfaces:
Serializable, Comparable<ColorSchemeEnum>

public enum ColorSchemeEnum
extends Enum<ColorSchemeEnum>

Enum for working with color schemes.

Author:
Kirill Grouchnikov

Enum Constant Summary
AQUA
          Value for AquaColorScheme.
BROWN
          Value for BrownColorScheme.
LIGHT_AQUA
          Value for LightAquaColorScheme.
LIGHT_GRAY
          Value for LightGrayColorScheme.
LIME_GREEN
          Value for LimeGreenColorScheme.
METALLIC
          Value for MetallicColorScheme.
OLIVE
          Value for OliveColorScheme.
ORANGE
          Value for OrangeColorScheme.
PURPLE
          Value for PurpleColorScheme.
SEPIA
          Value for SepiaColorScheme.
STEEL_BLUE
          Value for SteelBlueColorScheme.
SUN_GLARE
          Value for SunGlareColorScheme.
SUNSET
          Value for SunsetColorScheme.
TERRACOTTA
          Value for TerracottaColorScheme.
 
Method Summary
 ColorScheme getColorScheme()
          Retrieves the corresponding color scheme.
static ColorSchemeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ColorSchemeEnum[] 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

LIGHT_GRAY

public static final ColorSchemeEnum LIGHT_GRAY
Value for LightGrayColorScheme.


METALLIC

public static final ColorSchemeEnum METALLIC
Value for MetallicColorScheme.


AQUA

public static final ColorSchemeEnum AQUA
Value for AquaColorScheme.


LIGHT_AQUA

public static final ColorSchemeEnum LIGHT_AQUA
Value for LightAquaColorScheme.


ORANGE

public static final ColorSchemeEnum ORANGE
Value for OrangeColorScheme.


PURPLE

public static final ColorSchemeEnum PURPLE
Value for PurpleColorScheme.


LIME_GREEN

public static final ColorSchemeEnum LIME_GREEN
Value for LimeGreenColorScheme.


SUN_GLARE

public static final ColorSchemeEnum SUN_GLARE
Value for SunGlareColorScheme.


SUNSET

public static final ColorSchemeEnum SUNSET
Value for SunsetColorScheme.


OLIVE

public static final ColorSchemeEnum OLIVE
Value for OliveColorScheme.


TERRACOTTA

public static final ColorSchemeEnum TERRACOTTA
Value for TerracottaColorScheme.


SEPIA

public static final ColorSchemeEnum SEPIA
Value for SepiaColorScheme.


STEEL_BLUE

public static final ColorSchemeEnum STEEL_BLUE
Value for SteelBlueColorScheme.


BROWN

public static final ColorSchemeEnum BROWN
Value for BrownColorScheme.

Method Detail

values

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

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

valueOf

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

getColorScheme

public ColorScheme getColorScheme()
Retrieves the corresponding color scheme.

Returns:
Corresponding color scheme.