Class CompoundTheoryStrategy

java.lang.Object
toxi.color.theory.CompoundTheoryStrategy
All Implemented Interfaces:
ColorTheoryStrategy

public class CompoundTheoryStrategy extends Object implements ColorTheoryStrategy
  • Field Details

  • Constructor Details

    • CompoundTheoryStrategy

      public CompoundTheoryStrategy()
    • CompoundTheoryStrategy

      public CompoundTheoryStrategy(boolean flipped)
  • Method Details

    • createListFromColor

      public ColorList createListFromColor(ReadonlyTColor src)
      Description copied from interface: ColorTheoryStrategy
      Creates a new ColorList of colors for the supplied source color based on the strategy. The number of colors returned is unspecified and depends on the strategy.
      Specified by:
      createListFromColor in interface ColorTheoryStrategy
      Parameters:
      src - source color
      Returns:
      list of matching colors created by the strategy.
    • getName

      public String getName()
      Description copied from interface: ColorTheoryStrategy
      Returns the unique name of the strategy.
      Specified by:
      getName in interface ColorTheoryStrategy
      Returns:
      name
    • isFlipped

      public boolean isFlipped()
    • setFlipped

      public void setFlipped(boolean state)
    • toString

      public String toString()
      Overrides:
      toString in class Object