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
 java.awt.Color getColor()
          This method is called right before the color activity starts.
 void setColor(java.awt.Color color)
          This will be called by the color activity for each new interpolated color that it computes while it is stepping.
 

Method Detail

setColor

void setColor(java.awt.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

java.awt.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.


Copyright © 1995-2010 Piccolo2D. All Rights Reserved.