01: package prefuse.util.display;
02:
03: import java.awt.Graphics2D;
04: import java.util.EventListener;
05:
06: import prefuse.Display;
07:
08: /**
09: * Listener interface for monitoring paint events on a Display. This
10: * listener is notified both directly before and after a Display has
11: * been painted, and allows for custom painting to be performed.
12: *
13: * @author <a href="http://jheer.org">jeffrey heer</a>
14: */
15: public interface PaintListener extends EventListener {
16:
17: /**
18: * Notification that Display painting is beginning.
19: * @param d the Display about to paint itself
20: * @param g the Graphics context for the Display
21: */
22: public void prePaint(Display d, Graphics2D g);
23:
24: /**
25: * Notification that Display painting has completed.
26: * @param d the Display about to paint itself
27: * @param g the Graphics context for the Display
28: */
29: public void postPaint(Display d, Graphics2D g);
30:
31: } // end of interface PaintListener
|