Package edu.umd.cs.piccolo.activities
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
-
Method Details
-
setColor
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.
-