Interface PColorActivity.Target

Enclosing class:
PColorActivity

public static interface PColorActivity.Target
Target Objects that want their color to be set by the color activity must implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method is called right before the color activity starts.
    void
    setColor(Color color)
    This will be called by the color activity for each new interpolated color that it computes while it is stepping.
  • Method Details

    • setColor

      void setColor(Color color)
      This will be called by the color activity for each new interpolated color that it computes while it is stepping.
      Parameters:
      color - the color to assign to the target
    • getColor

      Color getColor()
      This method is called right before the color activity starts. That way an object's color is always animated from its current color.
      Returns:
      the target's current color.