Class Repeat


public class Repeat
extends ColorSchemeUnary
Duplicates a ColorList produced by another ColorScheme a certain number of times.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • transform

      protected ColorList transform​(ColorList source)
      Description copied from class: ColorSchemeUnary
      Transform an existing ColorList.

      Note that the incoming ColorList may be modified, and can no longer be used in its original form after this method call.

      Specified by:
      transform in class ColorSchemeUnary
      Parameters:
      source - the incoming ColorList (which may be consumed and modified).
      Returns:
      the transformed (outgoing) ColorList.
    • getTimes

      public int getTimes()
      How many times to duplicate the list.
    • setTimes

      public void setTimes​(int times)
      How many times to duplicate the list.