Packages This Package Prev Next Index
public class java.awt.Event extends java.lang.Object (I-§1.12) { // Fields public Object arg; §1.14.1 public int clickCount; §1.14.2 public Event evt; §1.14.3 public int id; §1.14.4 public int key; §1.14.5 public int modifiers; §1.14.6 public Object target; §1.14.7 public long when; §1.14.8 public int x; §1.14.9 public int y; §1.14.10 // possible values for the id field public final static int ACTION_EVENT; §1.14.11 public final static int GOT_FOCUS; §1.14.12 public final static int KEY_ACTION; §1.14.13 public final static int KEY_ACTION_RELEASE; §1.14.14 public final static int KEY_PRESS; §1.14.15 public final static int KEY_RELEASE; §1.14.16 public final static int LIST_DESELECT; §1.14.17 public final static int LIST_SELECT; §1.14.18 public final static int LOAD_FILE; §1.14.19 public final static int LOST_FOCUS; §1.14.20 public final static int MOUSE_DOWN; §1.14.21 public final static int MOUSE_DRAG; §1.14.22 public final static int MOUSE_ENTER; §1.14.23 public final static int MOUSE_EXIT; §1.14.24 public final static int MOUSE_MOVE; §1.14.25 public final static int MOUSE_UP; §1.14.26 public final static int SAVE_FILE; §1.14.27 public final static int SCROLL_ABSOLUTE; §1.14.28 public final static int SCROLL_LINE_DOWN; §1.14.29 public final static int SCROLL_LINE_UP; §1.14.30 public final static int SCROLL_PAGE_DOWN; §1.14.31 public final static int SCROLL_PAGE_UP; §1.14.32 public final static int WINDOW_DEICONIFY; §1.14.33 public final static int WINDOW_DESTROY; §1.14.34 public final static int WINDOW_EXPOSE; §1.14.35 public final static int WINDOW_ICONIFY; §1.14.36 public final static int WINDOW_MOVED; §1.14.37 // possible values for the key field when the // action is KEY_ACTION or KEY_ACTION_RELEASE public final static int DOWN; §1.14.38 public final static int END; §1.14.39 public final static int F1; §1.14.40 public final static int F2; §1.14.41 public final static int F3; §1.14.42 public final static int F4; §1.14.43 public final static int F5; §1.14.44 public final static int F6; §1.14.45 public final static int F7; §1.14.46 public final static int F8; §1.14.47 public final static int F9; §1.14.48 public final static int F10; §1.14.49 public final static int F11; §1.14.50 public final static int F12; §1.14.51 public final static int HOME; §1.14.52 public final static int LEFT; §1.14.53 public final static int PGDN; §1.14.54 public final static int PGUP; §1.14.55 public final static int RIGHT; §1.14.56 public final static int UP; §1.14.57 // possible masks for the modifiers field public final static int ALT_MASK §1.14.58 public final static int CTRL_MASK; §1.14.59 public final static int META_MASK; §1.14.61 public final static int SHIFT_MASK; §1.14.60 // Constructors public Event(Object target, int id, Object arg); §1.14.62 public Event(Object target, long when, int id, §1.14.63 int x, int y, int key, int modifiers); public Event(Object target, long when, int id, §1.14.64 int x, int y, int key, int modifiers, Object arg); // Methods public boolean controlDown(); §1.14.65 public boolean metaDown(); §1.14.66 protected String paramString(); §1.14.67 public boolean shiftDown(); §1.14.68 public String toString(); §1.14.69 public void translate(int dX, int dY); §1.14.70 }Event is a platform-independent class that encapsulates user events from the local Graphical User Interface (GUI) platform.
public Object arg
public int clickCount
public Event evt
public int id
public int key
public int modifiers
public Object target
public long when
public int x
public int y
public final static int ACTION_EVENT = 1001
public final static int GOT_FOCUS = 1004
public final static int KEY_ACTION = 403
public final static int KEY_ACTION_RELEASE = 404
public final static int KEY_PRESS = 401
public final static int KEY_RELEASE = 402
public final static int LIST_DESELECT = 702
public final static int LIST_SELECT = 701
public final static int LOAD_FILE = 1002
public final static int LOST_FOCUS = 1005
public final static int MOUSE_DOWN = 501
public final static int MOUSE_DRAG = 506
public final static int MOUSE_ENTER = 504
public final static int MOUSE_EXIT = 505
public final static int MOUSE_MOVE = 503
public final static int MOUSE_UP = 502
public final static int SAVE_FILE = 1003
public final static int SCROLL_ABSOLUTE = 605
public final static int SCROLL_LINE_DOWN = 602
public final static int SCROLL_LINE_UP = 601
public final static int SCROLL_PAGE_DOWN = 604
public final static int SCROLL_PAGE_UP = 603
public final static int WINDOW_DEICONIFY = 204
public final static int WINDOW_DESTROY = 201
public final static int WINDOW_EXPOSE = 202
public final static int WINDOW_ICONIFY = 203
public final static int WINDOW_MOVED = 205
public final static int DOWN = 1005
public final static int END = 1001
public final static int F1 = 1008
public final static int F2 = 1009
public final static int F3 = 1010
public final static int F4 = 1011
public final static int F5 = 1012
public final static int F6 = 1013
public final static int F7 = 1014
public final static int F8 = 1015
public final static int F9 = 1016
public final static int F10 = 1017
public final static int F11 = 1018
public final static int F12 = 1019
public final static int HOME = 1008
public final static int LEFT = 1006
public final static int PGDN = 1003
public final static int PGUP = 1002
public final static int RIGHT = 1007
public final static int UP = 1004
public final static int ALT_MASK = 8
public final static int CTRL_MASK = 2
public final static int SHIFT_MASK = 0
public final static int META_MASK = 4
public Event(Object target, int id, Object arg)
target
-
the target component
id
-
the event type
arg
-
the specified argument
public Event(Object target, long when, int id,
int x, int y, int key, int modifiers)
target
-
the target component
when
-
the time stamp
id
-
the event type
x
-
the x coordinate
y
-
the y coordinate
key
-
the key pressed in a keyboard event
modifiers
-
the state of the modifier keys
public Event(Object target, long when, int id, int x,
int y, int key, int modifiers, Object arg)
target
-
the target component
when
-
the time stamp
id
-
the event type
x
-
the x coordinate
y
-
the y coordinate
key
-
the key pressed in a keyboard event
modifiers
-
the state of the modifier keys
arg
-
the specified argument
public boolean controlDown()
public boolean metaDown()
protected String paramString()
public boolean shiftDown()
public String toString()
public void translate(int dx, int dy)
dX
-
the amount to translate the x coordinate
dY
-
the amount to translate the y coordinate
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)