Sets a method to execute in draw()
before drawing the Animation each frame. This method determines
whether or not the Animation should finish immediately. The specified
method must be prototyped as:
boolean myTestMethod();
where the specified method must return a boolean
(true if the Animation has ended; false
otherwise), and take no parameters.
To restart a finished Animation, use reset().
|