|
Last change
on this file since 154 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /* Copyright (C) 2000 Free Software Foundation
|
|---|
| 2 |
|
|---|
| 3 | This file is part of libjava.
|
|---|
| 4 |
|
|---|
| 5 | This software is copyrighted work licensed under the terms of the
|
|---|
| 6 | Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|---|
| 7 | details. */
|
|---|
| 8 |
|
|---|
| 9 | package java.awt.event;
|
|---|
| 10 | import java.awt.*;
|
|---|
| 11 |
|
|---|
| 12 | /**
|
|---|
| 13 | * @author Tom Tromey <[email protected]>
|
|---|
| 14 | * @date April 8, 2000
|
|---|
| 15 | */
|
|---|
| 16 |
|
|---|
| 17 | /* Status: Believed complete and correct to JDK 1.2. */
|
|---|
| 18 |
|
|---|
| 19 | public class PaintEvent extends ComponentEvent
|
|---|
| 20 | {
|
|---|
| 21 | public static final int PAINT = 800;
|
|---|
| 22 | public static final int PAINT_FIRST = 800;
|
|---|
| 23 | public static final int PAINT_LAST = 801;
|
|---|
| 24 | public static final int UPDATE = 801;
|
|---|
| 25 |
|
|---|
| 26 | public PaintEvent (Component source, int id, Rectangle updateRect)
|
|---|
| 27 | {
|
|---|
| 28 | super (source, id);
|
|---|
| 29 | this.updateRect = updateRect;
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | public Rectangle getUpdateRect ()
|
|---|
| 33 | {
|
|---|
| 34 | return updateRect;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | public String paramString ()
|
|---|
| 38 | {
|
|---|
| 39 | String r;
|
|---|
| 40 | switch (id)
|
|---|
| 41 | {
|
|---|
| 42 | case UPDATE:
|
|---|
| 43 | r = "UPDATE";
|
|---|
| 44 | break;
|
|---|
| 45 | case PAINT:
|
|---|
| 46 | r = "PAINT";
|
|---|
| 47 | break;
|
|---|
| 48 | default:
|
|---|
| 49 | r = "unknown id";
|
|---|
| 50 | break;
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | r += ",updateRect=" + updateRect;
|
|---|
| 54 | return r;
|
|---|
| 55 | }
|
|---|
| 56 |
|
|---|
| 57 | public void setUpdateRect (Rectangle updateRect)
|
|---|
| 58 | {
|
|---|
| 59 | this.updateRect = updateRect;
|
|---|
| 60 | }
|
|---|
| 61 |
|
|---|
| 62 | private Rectangle updateRect;
|
|---|
| 63 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.