01: package com.xoetrope.swing.animation;
02:
03: /**
04: * The interface for DemoSurface's that wish to animate.
05: *
06: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
07: * the GNU Public License (GPL), please see license.txt for more details. If
08: * you make commercial use of this software you must purchase a commercial
09: * license from Xoetrope.</p>
10: * <p> $Revision: 1.5 $</p>
11: */
12: public interface XAnimationContext {
13: /**
14: * Adjust the settings for the next step.
15: *
16: * @param w the width
17: * @param h the height
18: */
19: public void step(int w, int h);
20:
21: /**
22: * Adjust the settings for the next step.
23: * @param w the width
24: * @param h the height
25: * @param at the animation thread on which this object is running
26: */
27: public void reset(AnimationThread at);
28:
29: /**
30: * Is the animation loop finished
31: *
32: * @param at the animation thread on which this object is running
33: * @return true if the animation has completed
34: */
35: public boolean isFinished(AnimationThread at);
36: }
|