toxi.color.theory
Class ColorTheoryFactory

java.lang.Object
  extended by toxi.color.theory.ColorTheoryFactory

public class ColorTheoryFactory
extends java.lang.Object

Registry & object factory for default ColorTheoryStrategy implementations as well as custom ones.


Field Summary
static java.lang.String ANALOGOUS
           
static java.lang.String COMPLEMENTARY
           
static java.lang.String COMPOUND
           
static java.lang.String LEFT_SPLIT_COMPLEMENTARY
           
static java.lang.String MONOCHROME
           
static java.lang.String RIGHT_SPLIT_COMPLEMENTARY
           
static java.lang.String SINGLE_COMPLEMENT
           
static java.lang.String SPLIT_COMPLEMENTARY
           
static java.lang.String TETRAD
           
static java.lang.String TRIAD
           
 
Method Summary
static ColorTheoryFactory getInstance()
           
 java.util.ArrayList<java.lang.String> getRegisteredNames()
           
 java.util.ArrayList<ColorTheoryStrategy> getRegisteredStrategies()
           
 ColorTheoryStrategy getStrategyForName(java.lang.String id)
           
 void registerImplementation(ColorTheoryStrategy impl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_COMPLEMENT

public static final java.lang.String SINGLE_COMPLEMENT
See Also:
Constant Field Values

COMPLEMENTARY

public static final java.lang.String COMPLEMENTARY
See Also:
Constant Field Values

SPLIT_COMPLEMENTARY

public static final java.lang.String SPLIT_COMPLEMENTARY
See Also:
Constant Field Values

LEFT_SPLIT_COMPLEMENTARY

public static final java.lang.String LEFT_SPLIT_COMPLEMENTARY
See Also:
Constant Field Values

RIGHT_SPLIT_COMPLEMENTARY

public static final java.lang.String RIGHT_SPLIT_COMPLEMENTARY
See Also:
Constant Field Values

ANALOGOUS

public static final java.lang.String ANALOGOUS
See Also:
Constant Field Values

MONOCHROME

public static final java.lang.String MONOCHROME
See Also:
Constant Field Values

TRIAD

public static final java.lang.String TRIAD
See Also:
Constant Field Values

TETRAD

public static final java.lang.String TETRAD
See Also:
Constant Field Values

COMPOUND

public static final java.lang.String COMPOUND
See Also:
Constant Field Values
Method Detail

getInstance

public static ColorTheoryFactory getInstance()

registerImplementation

public void registerImplementation(ColorTheoryStrategy impl)

getStrategyForName

public ColorTheoryStrategy getStrategyForName(java.lang.String id)

getRegisteredNames

public java.util.ArrayList<java.lang.String> getRegisteredNames()

getRegisteredStrategies

public java.util.ArrayList<ColorTheoryStrategy> getRegisteredStrategies()