    All Packages    This Package    Previous    Next

# Class awt.Event

    java.lang.Object
       |
       +----awt.Event

public class Event
extends Object

Event is a platform-independent class that encapsulates events from the local GUI platform.

Version:
  1.11 31 Jan 1995
Author:
  Sami Shaio

##

CTRL_DOWN
FRAME_DESTROY
FRAME_EVENT
  Base for all Frame events.
FRAME_EXPOSE
KEY_EVENT
  Base for all keyboard events.
KEY_PRESS
KEY_RELEASE
MOUSE_DOWN
MOUSE_DRAG
MOUSE_ENTER
MOUSE_EVENT
  Base for all mouse events.
MOUSE_LEAVE
MOUSE_MOTION
MOUSE_UP
POINTER_EVENT
  Base for all Pointer events.
POINTER_MOTION
SHIFT_DOWN
  Modifier constants
WINDOW_DESTROY
WINDOW_EVENT
  Base for all Window events.
WINDOW_EXPOSE
WINDOW_RESIZE
id
  the type of this event.
key
  the key that was pressed in a keyboard event.
keyIsAscii
  true if a keyboard event is ascii.
modifiers
  the state of the modifier keys.
obj
  the object that is the target of an event.
x
  the x coordinate of the pointer.
y
  the y coordinate of the pointer.

##

Event()
Event(int, Object, int, int, boolean, char, int)
Event(int, Object, int, int, boolean, char)

##

clone()
copy(Object)
print()
toString()

##

SHIFT_DOWN

      public final static int SHIFT_DOWN

  Modifier constants

CTRL_DOWN

      public final static int CTRL_DOWN

WINDOW_EVENT

      public final static int WINDOW_EVENT

  Base for all Window events.

WINDOW_RESIZE

      public final static int WINDOW_RESIZE

WINDOW_EXPOSE

      public final static int WINDOW_EXPOSE

WINDOW_DESTROY

      public final static int WINDOW_DESTROY

FRAME_EVENT

      public final static int FRAME_EVENT

  Base for all Frame events.

FRAME_DESTROY

      public final static int FRAME_DESTROY

FRAME_EXPOSE

      public final static int FRAME_EXPOSE

POINTER_EVENT

      public final static int POINTER_EVENT

  Base for all Pointer events.

POINTER_MOTION

      public final static int POINTER_MOTION

KEY_EVENT

      public final static int KEY_EVENT

  Base for all keyboard events.

KEY_PRESS

      public final static int KEY_PRESS

KEY_RELEASE

      public final static int KEY_RELEASE

MOUSE_EVENT

      public final static int MOUSE_EVENT

  Base for all mouse events.

MOUSE_DOWN

      public final static int MOUSE_DOWN

MOUSE_UP

      public final static int MOUSE_UP

MOUSE_MOTION

      public final static int MOUSE_MOTION

MOUSE_ENTER

      public final static int MOUSE_ENTER

MOUSE_LEAVE

      public final static int MOUSE_LEAVE

MOUSE_DRAG

      public final static int MOUSE_DRAG

id

      public int id

  the type of this event.

x

      public int x

  the x coordinate of the pointer.

y

      public int y

  the y coordinate of the pointer.

keyIsAscii

      public boolean keyIsAscii

  true if a keyboard event is ascii.

key

      public char key

  the key that was pressed in a keyboard event.

obj

      public Object obj

  the object that is the target of an event.

modifiers

      public int modifiers

  the state of the modifier keys. See modifer constants above.

##

Event

      public Event()

Event

      public Event(int pId,
                   Object pObj,
                   int pX,
                   int pY,
                   boolean pAscii,
                   char pk,
                   int modifiers)

Event

      public Event(int pId,
                   Object pObj,
                   int pX,
                   int pY,
                   boolean pAscii,
                   char pk)

##

toString

      public String toString()

print

      public void print()

clone

      public Object clone()

copy

      public void copy(Object src)

    All Packages    This Package    Previous    Next