com.spelunkcomputing.color
Enum ColorRelation.Type

java.lang.Object
  extended by java.lang.Enum<ColorRelation.Type>
      extended by com.spelunkcomputing.color.ColorRelation.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ColorRelation.Type>
Enclosing class:
ColorRelation

public static enum ColorRelation.Type
extends java.lang.Enum<ColorRelation.Type>


Enum Constant Summary
AD_HOC
          This type of ColorRelation allows the palette colors to be selected manually.
ANALOGOUS
          This type of ColorRelation generates colors that span a range of hues about the base hue while sharing its saturation and brightness
COMPLIMENTARY
          This type of ColorRelation generates pairs of colors with complimentary hues, i.e.
COMPONENT_GRID
          This type of ColorRelation generates a grid of colors formed by systematically varying each component.
DUAL_COMPLIMENTARY
          This type of ColorRelation generates two pairs of complementary colors.
MONOCHROMATIC
          This type of ColorRelation generates colors tha share a common hue but vary in saturation and brightness.
PENTAD
          This type of ColorRelation generates five colors with hues that are equally spaced around the color wheel.
RANDOM
          This type of ColorRelation generates colors by randomly varying components of the base color
SPLIT_COMPLIMETARY
          This type of ColorRelation generatea a pair colors whose hues are near compliments to the base color.
TETRAD
          This type of ColorRelation generates four colors with hues that are equally spaced around the color wheel.
TRIAD
          This type of ColorRelation generates three colors with hues that are equally spaced around the color wheel.
 
Method Summary
 java.lang.String toString()
           
static ColorRelation.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ColorRelation.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MONOCHROMATIC

public static final ColorRelation.Type MONOCHROMATIC
This type of ColorRelation generates colors tha share a common hue but vary in saturation and brightness.


ANALOGOUS

public static final ColorRelation.Type ANALOGOUS
This type of ColorRelation generates colors that span a range of hues about the base hue while sharing its saturation and brightness


COMPLIMENTARY

public static final ColorRelation.Type COMPLIMENTARY
This type of ColorRelation generates pairs of colors with complimentary hues, i.e. hues that are opposite each other on the color wheel. When more than one pair is generated the additional pairs have varying saturation and brightness.


SPLIT_COMPLIMETARY

public static final ColorRelation.Type SPLIT_COMPLIMETARY
This type of ColorRelation generatea a pair colors whose hues are near compliments to the base color. When more than one, near-complimentary pair is generated the saturation is varied.


DUAL_COMPLIMENTARY

public static final ColorRelation.Type DUAL_COMPLIMENTARY
This type of ColorRelation generates two pairs of complementary colors.


TRIAD

public static final ColorRelation.Type TRIAD
This type of ColorRelation generates three colors with hues that are equally spaced around the color wheel.


TETRAD

public static final ColorRelation.Type TETRAD
This type of ColorRelation generates four colors with hues that are equally spaced around the color wheel.


PENTAD

public static final ColorRelation.Type PENTAD
This type of ColorRelation generates five colors with hues that are equally spaced around the color wheel.


COMPONENT_GRID

public static final ColorRelation.Type COMPONENT_GRID
This type of ColorRelation generates a grid of colors formed by systematically varying each component.


RANDOM

public static final ColorRelation.Type RANDOM
This type of ColorRelation generates colors by randomly varying components of the base color


AD_HOC

public static final ColorRelation.Type AD_HOC
This type of ColorRelation allows the palette colors to be selected manually.

Method Detail

values

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

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

valueOf

public static ColorRelation.Type 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ColorRelation.Type>