java.awt
Class Event
java.lang.Object
java.awt.Event
- All Implemented Interfaces:
- Serializable
public class Event
- extends Object
- implements Serializable
Written using on-line Java Platform 1.2 API Specification, as well
as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
Status: Believed complete and correct.
- See Also:
- Serialized Form
Constructor Summary |
Event(Object target,
int id,
Object arg)
|
Event(Object target,
long when,
int id,
int x,
int y,
int key,
int modifiers)
|
Event(Object target,
long when,
int id,
int x,
int y,
int key,
int modifiers,
Object arg)
|
SHIFT_MASK
public static final int SHIFT_MASK
- See Also:
- Constant Field Values
CTRL_MASK
public static final int CTRL_MASK
- See Also:
- Constant Field Values
META_MASK
public static final int META_MASK
- See Also:
- Constant Field Values
ALT_MASK
public static final int ALT_MASK
- See Also:
- Constant Field Values
ACTION_EVENT
public static final int ACTION_EVENT
- See Also:
- Constant Field Values
BACK_SPACE
public static final int BACK_SPACE
- See Also:
- Constant Field Values
CAPS_LOCK
public static final int CAPS_LOCK
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
DOWN
public static final int DOWN
- See Also:
- Constant Field Values
END
public static final int END
- See Also:
- Constant Field Values
ENTER
public static final int ENTER
- See Also:
- Constant Field Values
ESCAPE
public static final int ESCAPE
- See Also:
- Constant Field Values
F1
public static final int F1
- See Also:
- Constant Field Values
F10
public static final int F10
- See Also:
- Constant Field Values
F11
public static final int F11
- See Also:
- Constant Field Values
F12
public static final int F12
- See Also:
- Constant Field Values
F2
public static final int F2
- See Also:
- Constant Field Values
F3
public static final int F3
- See Also:
- Constant Field Values
F4
public static final int F4
- See Also:
- Constant Field Values
F5
public static final int F5
- See Also:
- Constant Field Values
F6
public static final int F6
- See Also:
- Constant Field Values
F7
public static final int F7
- See Also:
- Constant Field Values
F8
public static final int F8
- See Also:
- Constant Field Values
F9
public static final int F9
- See Also:
- Constant Field Values
GOT_FOCUS
public static final int GOT_FOCUS
- See Also:
- Constant Field Values
HOME
public static final int HOME
- See Also:
- Constant Field Values
INSERT
public static final int INSERT
- See Also:
- Constant Field Values
KEY_ACTION
public static final int KEY_ACTION
- See Also:
- Constant Field Values
KEY_ACTION_RELEASE
public static final int KEY_ACTION_RELEASE
- See Also:
- Constant Field Values
KEY_PRESS
public static final int KEY_PRESS
- See Also:
- Constant Field Values
KEY_RELEASE
public static final int KEY_RELEASE
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
LIST_DESELECT
public static final int LIST_DESELECT
- See Also:
- Constant Field Values
LIST_SELECT
public static final int LIST_SELECT
- See Also:
- Constant Field Values
LOAD_FILE
public static final int LOAD_FILE
- See Also:
- Constant Field Values
LOST_FOCUS
public static final int LOST_FOCUS
- See Also:
- Constant Field Values
MOUSE_DOWN
public static final int MOUSE_DOWN
- See Also:
- Constant Field Values
MOUSE_DRAG
public static final int MOUSE_DRAG
- See Also:
- Constant Field Values
MOUSE_ENTER
public static final int MOUSE_ENTER
- See Also:
- Constant Field Values
MOUSE_EXIT
public static final int MOUSE_EXIT
- See Also:
- Constant Field Values
MOUSE_MOVE
public static final int MOUSE_MOVE
- See Also:
- Constant Field Values
MOUSE_UP
public static final int MOUSE_UP
- See Also:
- Constant Field Values
NUM_LOCK
public static final int NUM_LOCK
- See Also:
- Constant Field Values
PAUSE
public static final int PAUSE
- See Also:
- Constant Field Values
PGDN
public static final int PGDN
- See Also:
- Constant Field Values
PGUP
public static final int PGUP
- See Also:
- Constant Field Values
PRINT_SCREEN
public static final int PRINT_SCREEN
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
SAVE_FILE
public static final int SAVE_FILE
- See Also:
- Constant Field Values
SCROLL_ABSOLUTE
public static final int SCROLL_ABSOLUTE
- See Also:
- Constant Field Values
SCROLL_BEGIN
public static final int SCROLL_BEGIN
- See Also:
- Constant Field Values
SCROLL_END
public static final int SCROLL_END
- See Also:
- Constant Field Values
SCROLL_LINE_DOWN
public static final int SCROLL_LINE_DOWN
- See Also:
- Constant Field Values
SCROLL_LINE_UP
public static final int SCROLL_LINE_UP
- See Also:
- Constant Field Values
SCROLL_LOCK
public static final int SCROLL_LOCK
- See Also:
- Constant Field Values
SCROLL_PAGE_DOWN
public static final int SCROLL_PAGE_DOWN
- See Also:
- Constant Field Values
SCROLL_PAGE_UP
public static final int SCROLL_PAGE_UP
- See Also:
- Constant Field Values
TAB
public static final int TAB
- See Also:
- Constant Field Values
UP
public static final int UP
- See Also:
- Constant Field Values
WINDOW_DEICONIFY
public static final int WINDOW_DEICONIFY
- See Also:
- Constant Field Values
WINDOW_DESTROY
public static final int WINDOW_DESTROY
- See Also:
- Constant Field Values
WINDOW_EXPOSE
public static final int WINDOW_EXPOSE
- See Also:
- Constant Field Values
WINDOW_ICONIFY
public static final int WINDOW_ICONIFY
- See Also:
- Constant Field Values
WINDOW_MOVED
public static final int WINDOW_MOVED
- See Also:
- Constant Field Values
arg
public Object arg
clickCount
public int clickCount
evt
public Event evt
id
public int id
key
public int key
modifiers
public int modifiers
target
public Object target
when
public long when
x
public int x
y
public int y
Event
public Event(Object target,
int id,
Object arg)
Event
public Event(Object target,
long when,
int id,
int x,
int y,
int key,
int modifiers)
Event
public Event(Object target,
long when,
int id,
int x,
int y,
int key,
int modifiers,
Object arg)
controlDown
public boolean controlDown()
metaDown
public boolean metaDown()
paramString
protected String paramString()
shiftDown
public boolean shiftDown()
toString
public String toString()
- Description copied from class:
Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into
System.out.println()
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a RuntimeException
.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.
- Overrides:
toString
in class Object
- Returns:
- the String representing this Object, which may be null
- See Also:
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
translate
public void translate(int x,
int y)