java.awt
Class Event

java.lang.Object
  extended by 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

Field Summary
static int ACTION_EVENT
           
static int ALT_MASK
           
 Object arg
           
static int BACK_SPACE
           
static int CAPS_LOCK
           
 int clickCount
           
static int CTRL_MASK
           
static int DELETE
           
static int DOWN
           
static int END
           
static int ENTER
           
static int ESCAPE
           
 Event evt
           
static int F1
           
static int F10
           
static int F11
           
static int F12
           
static int F2
           
static int F3
           
static int F4
           
static int F5
           
static int F6
           
static int F7
           
static int F8
           
static int F9
           
static int GOT_FOCUS
           
static int HOME
           
 int id
           
static int INSERT
           
 int key
           
static int KEY_ACTION
           
static int KEY_ACTION_RELEASE
           
static int KEY_PRESS
           
static int KEY_RELEASE
           
static int LEFT
           
static int LIST_DESELECT
           
static int LIST_SELECT
           
static int LOAD_FILE
           
static int LOST_FOCUS
           
static int META_MASK
           
 int modifiers
           
static int MOUSE_DOWN
           
static int MOUSE_DRAG
           
static int MOUSE_ENTER
           
static int MOUSE_EXIT
           
static int MOUSE_MOVE
           
static int MOUSE_UP
           
static int NUM_LOCK
           
static int PAUSE
           
static int PGDN
           
static int PGUP
           
static int PRINT_SCREEN
           
static int RIGHT
           
static int SAVE_FILE
           
static int SCROLL_ABSOLUTE
           
static int SCROLL_BEGIN
           
static int SCROLL_END
           
static int SCROLL_LINE_DOWN
           
static int SCROLL_LINE_UP
           
static int SCROLL_LOCK
           
static int SCROLL_PAGE_DOWN
           
static int SCROLL_PAGE_UP
           
static int SHIFT_MASK
           
static int TAB
           
 Object target
           
static int UP
           
 long when
           
static int WINDOW_DEICONIFY
           
static int WINDOW_DESTROY
           
static int WINDOW_EXPOSE
           
static int WINDOW_ICONIFY
           
static int WINDOW_MOVED
           
 int x
           
 int y
           
 
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)
           
 
Method Summary
 boolean controlDown()
           
 boolean metaDown()
           
protected  String paramString()
           
 boolean shiftDown()
           
 String toString()
          Convert this Object to a human-readable String.
 void translate(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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)