01: package com.jidesoft.swing;
02:
03: import java.awt.*;
04:
05: /**
06: * This is a listener that can be used to customize the behaviour of animation.
07: */
08: public interface AnimatorListener {
09:
10: /**
11: * Called when the animation sequence starts.
12: *
13: * @param component
14: */
15: void animationStarts(Component component);
16:
17: /**
18: * Called when the animation sequence runs at certain step..
19: *
20: * @param component
21: */
22: void animationFrame(Component component, int totalStep, int step);
23:
24: /**
25: * Called when the animation sequence ends.
26: *
27: * @param component
28: */
29: void animationEnds(Component component);
30: }
|