01: package prefuse.activity;
02:
03: import java.util.EventListener;
04:
05: /**
06: * Callback interface by which interested classes can be notified of
07: * the progress of a scheduled activity.
08: *
09: * @author <a href="http://jheer.org">jeffrey heer</a>
10: */
11: public interface ActivityListener extends EventListener {
12:
13: /**
14: * Called when an activity has been scheduled with an ActivityManager
15: * @param a the scheduled Activity
16: */
17: public void activityScheduled(Activity a);
18:
19: /**
20: * Called when an activity is first started.
21: * @param a the started Activity
22: */
23: public void activityStarted(Activity a);
24:
25: /**
26: * Called when an activity is stepped.
27: * @param a the stepped Activity
28: */
29: public void activityStepped(Activity a);
30:
31: /**
32: * Called when an activity finishes.
33: * @param a the finished Activity
34: */
35: public void activityFinished(Activity a);
36:
37: /**
38: * Called when an activity is cancelled.
39: * @param a the cancelled Activity
40: */
41: public void activityCancelled(Activity a);
42:
43: } // end of interface ActivityListener
|