org.formaria.swing.animation
Interface AnimationContext


public interface AnimationContext

The interface for DemoSurface's that wish to animate.

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.5 $


Method Summary
 boolean isFinished(AnimationThread at)
          Is the animation loop finished
 void reset(AnimationThread at)
          Adjust the settings for the next step.
 void step(int w, int h)
          Adjust the settings for the next step.
 

Method Detail

step

void step(int w,
          int h)
Adjust the settings for the next step.

Parameters:
w - the width
h - the height

reset

void reset(AnimationThread at)
Adjust the settings for the next step.

Parameters:
w - the width
h - the height
at - the animation thread on which this object is running

isFinished

boolean isFinished(AnimationThread at)
Is the animation loop finished

Parameters:
at - the animation thread on which this object is running
Returns:
true if the animation has completed