prefuse.util.display
Interface PaintListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BackgroundPainter, DebugStatsPainter

public interface PaintListener
extends java.util.EventListener

Listener interface for monitoring paint events on a Display. This listener is notified both directly before and after a Display has been painted, and allows for custom painting to be performed.

Author:
jeffrey heer

Method Summary
 void postPaint(Display d, java.awt.Graphics2D g)
          Notification that Display painting has completed.
 void prePaint(Display d, java.awt.Graphics2D g)
          Notification that Display painting is beginning.
 

Method Detail

prePaint

void prePaint(Display d,
              java.awt.Graphics2D g)
Notification that Display painting is beginning.

Parameters:
d - the Display about to paint itself
g - the Graphics context for the Display

postPaint

void postPaint(Display d,
               java.awt.Graphics2D g)
Notification that Display painting has completed.

Parameters:
d - the Display about to paint itself
g - the Graphics context for the Display


Copyright © 2007 Regents of the University of California