paintlistener.java
来自「用applet实现很多应用小程序」· Java 代码 · 共 32 行
JAVA
32 行
package prefuse.util.display;
import java.awt.Graphics2D;
import java.util.EventListener;
import prefuse.Display;
/**
* 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 <a href="http://jheer.org">jeffrey heer</a>
*/
public interface PaintListener extends EventListener {
/**
* Notification that Display painting is beginning.
* @param d the Display about to paint itself
* @param g the Graphics context for the Display
*/
public void prePaint(Display d, Graphics2D g);
/**
* Notification that Display painting has completed.
* @param d the Display about to paint itself
* @param g the Graphics context for the Display
*/
public void postPaint(Display d, Graphics2D g);
} // end of interface PaintListener
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?