⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paintevent.java

📁 kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的java包。
💻 JAVA
字号:
package java.awt.event;import java.awt.Component;import java.awt.Rectangle;public class PaintEvent  extends ComponentEvent{	protected int x;	protected int y;	protected int width;	protected int height;	final public static int PAINT_FIRST = 800;	final public static int PAINT = 800;	final public static int UPDATE = 801;	final public static int PAINT_LAST = 802;	private static final long serialVersionUID = 1267492026433337593L;public PaintEvent ( Component src, int evtId, Rectangle updateRect ) {	super( src, evtId);	x = updateRect.x;	y = updateRect.y;	width = updateRect.width;	height = updateRect.height;}protected PaintEvent ( Component src, int evtId, int x, int y, int width, int height ) {	super( src, evtId);	this.x = x;	this.y = y;	this.width = width;	this.height = height;}public Rectangle getUpdateRect() {	return new Rectangle( x, y, width, height);}protected boolean isLiveEventFor ( Object src ) {	return (source == src);}public String paramString () {	String ps;		if ( id == PAINT ) ps = "PAINT";	else if ( id == UPDATE ) ps = "UPDATE";	else ps = "unknown Paint";		ps += " ["+x+','+y+','+width+','+height+"]";		return ps;}public void setUpdateRect( Rectangle r ) {	x = r.x;	y = r.y;	width = r.width;	height = r.height;}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -