jnpaintevent.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 60 行

JAVA
60
字号
/*
 * $Id: JNPaintEvent.java,v 1.2 2004/02/28 09:20:55 epr Exp $
 */
package org.jnode.wt.events;

import java.awt.Rectangle;

/**
 * @author vali
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class JNPaintEvent extends JNComponentEvent {
    private Rectangle updateRect = null;
    /*
     * event IDs
     */

    /** This is the first id in the range of event ids used by this class. */
    public static final int PAINT_FIRST = 800;

    /** This is the last id in the range of event ids used by this class. */
    public static final int PAINT_LAST = 801;

    /** This id is for paint event types. */
    public static final int PAINT = 800;

    /** This id is for update event types. */
    public static final int UPDATE = 801;

    /**
     * @param source
     * @param id
     */
    public JNPaintEvent(org.jnode.wt.components.JNComponent source, int id) {
        this(source, id, null);
    }

    public JNPaintEvent(org.jnode.wt.components.JNComponent source, int id, Rectangle updateRect) {
        super(source, id);
        this.updateRect = updateRect;
    }

    /**
     * @return Returns the updateRect.
     */
    public Rectangle getUpdateRect() {
        return this.updateRect;
    }

    /**
     * @param updateRect The updateRect to set.
     */
    public void setUpdateRect(Rectangle updateRect) {
        this.updateRect = updateRect;
    }

}

⌨️ 快捷键说明

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