java.awt

Class Event

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
static int
BACK_SPACE
static int
CAPS_LOCK
static int
CTRL_MASK
static int
DELETE
static int
DOWN
static int
END
static int
ENTER
static int
ESCAPE
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
static int
INSERT
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
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
static int
UP
static int
WINDOW_DEICONIFY
static int
WINDOW_DESTROY
static int
WINDOW_EXPOSE
static int
WINDOW_ICONIFY
static int
WINDOW_MOVED
Object
arg
int
clickCount
Event
evt
int
id
int
key
int
modifiers
Object
target
long
when
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()
void
translate(int x, int y)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

ACTION_EVENT

public static final int ACTION_EVENT

Field Value:
1001


ALT_MASK

public static final int ALT_MASK

Field Value:
8


BACK_SPACE

public static final int BACK_SPACE

Field Value:
8


CAPS_LOCK

public static final int CAPS_LOCK

Field Value:
1022


CTRL_MASK

public static final int CTRL_MASK

Field Value:
2


DELETE

public static final int DELETE

Field Value:
127


DOWN

public static final int DOWN

Field Value:
1005


END

public static final int END

Field Value:
1001


ENTER

public static final int ENTER

Field Value:
10


ESCAPE

public static final int ESCAPE

Field Value:
27


F1

public static final int F1

Field Value:
1008


F10

public static final int F10

Field Value:
1017


F11

public static final int F11

Field Value:
1018


F12

public static final int F12

Field Value:
1019


F2

public static final int F2

Field Value:
1009


F3

public static final int F3

Field Value:
1010


F4

public static final int F4

Field Value:
1011


F5

public static final int F5

Field Value:
1012


F6

public static final int F6

Field Value:
1013


F7

public static final int F7

Field Value:
1014


F8

public static final int F8

Field Value:
1015


F9

public static final int F9

Field Value:
1016


GOT_FOCUS

public static final int GOT_FOCUS

Field Value:
1004


HOME

public static final int HOME

Field Value:
1000


INSERT

public static final int INSERT

Field Value:
1025


KEY_ACTION

public static final int KEY_ACTION

Field Value:
403


KEY_ACTION_RELEASE

public static final int KEY_ACTION_RELEASE

Field Value:
404


KEY_PRESS

public static final int KEY_PRESS

Field Value:
401


KEY_RELEASE

public static final int KEY_RELEASE

Field Value:
402


LEFT

public static final int LEFT

Field Value:
1006


LIST_DESELECT

public static final int LIST_DESELECT

Field Value:
702


LIST_SELECT

public static final int LIST_SELECT

Field Value:
701


LOAD_FILE

public static final int LOAD_FILE

Field Value:
1002


LOST_FOCUS

public static final int LOST_FOCUS

Field Value:
1005


META_MASK

public static final int META_MASK

Field Value:
4


MOUSE_DOWN

public static final int MOUSE_DOWN

Field Value:
501


MOUSE_DRAG

public static final int MOUSE_DRAG

Field Value:
506


MOUSE_ENTER

public static final int MOUSE_ENTER

Field Value:
504


MOUSE_EXIT

public static final int MOUSE_EXIT

Field Value:
505


MOUSE_MOVE

public static final int MOUSE_MOVE

Field Value:
503


MOUSE_UP

public static final int MOUSE_UP

Field Value:
502


NUM_LOCK

public static final int NUM_LOCK

Field Value:
1023


PAUSE

public static final int PAUSE

Field Value:
1024


PGDN

public static final int PGDN

Field Value:
1003


PGUP

public static final int PGUP

Field Value:
1002


PRINT_SCREEN

public static final int PRINT_SCREEN

Field Value:
1020


RIGHT

public static final int RIGHT

Field Value:
1007


SAVE_FILE

public static final int SAVE_FILE

Field Value:
1003


SCROLL_ABSOLUTE

public static final int SCROLL_ABSOLUTE

Field Value:
605


SCROLL_BEGIN

public static final int SCROLL_BEGIN

Field Value:
606


SCROLL_END

public static final int SCROLL_END

Field Value:
607


SCROLL_LINE_DOWN

public static final int SCROLL_LINE_DOWN

Field Value:
602


SCROLL_LINE_UP

public static final int SCROLL_LINE_UP

Field Value:
601


SCROLL_LOCK

public static final int SCROLL_LOCK

Field Value:
1021


SCROLL_PAGE_DOWN

public static final int SCROLL_PAGE_DOWN

Field Value:
604


SCROLL_PAGE_UP

public static final int SCROLL_PAGE_UP

Field Value:
603


SHIFT_MASK

public static final int SHIFT_MASK

Field Value:
1


TAB

public static final int TAB

Field Value:
9


UP

public static final int UP

Field Value:
1004


WINDOW_DEICONIFY

public static final int WINDOW_DEICONIFY

Field Value:
204


WINDOW_DESTROY

public static final int WINDOW_DESTROY

Field Value:
201


WINDOW_EXPOSE

public static final int WINDOW_EXPOSE

Field Value:
202


WINDOW_ICONIFY

public static final int WINDOW_ICONIFY

Field Value:
203


WINDOW_MOVED

public static final int WINDOW_MOVED

Field Value:
205


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 Details

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 Details

controlDown

public boolean controlDown()


metaDown

public boolean metaDown()


paramString

protected String paramString()


shiftDown

public boolean shiftDown()


toString

public String toString()
Overrides:
toString in interface Object


translate

public void translate(int x,
                      int y)


Copyright (C) 1999, 2000, 2002 Free Software Foundation This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.