01: package net.java.swingfx.waitwithstyle;
02:
03: /**
04: * Created to bolt a cancel button onto to the infinite progress panel. An
05: * infiniteProgressAdapter pattern is used to hopefully adapt to the PerformanceInfiniteProgressPanel
06: * as well (not yet done).
07: * @author Michael Bushe michael@bushe.com
08: */
09: public interface InfiniteProgressAdapter {
10: /**
11: * Called as the animation is starting.
12: */
13: void animationStarting();
14:
15: /**
16: * Called as the animation is stopping.
17: */
18: void animationStopping();
19:
20: /**
21: * Allows subcomponents to draw their own widgets
22: * @param maxY the bottommost Y already drawn to
23: */
24: void paintSubComponents(double maxY);
25:
26: /**
27: * Called when the ramp up ends (cancel button adds it component
28: * at this point, otherwise it draws too early).
29: */
30: void rampUpEnded();
31: }
|