1 package prefuse.util.display; 2 3 import java.awt.Graphics2D; 4 import java.util.EventListener; 5 6 import prefuse.Display; 7 8 /** 9 * 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 32