org.gnu.gdk
Class Event

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.Boxed
          extended by org.gnu.gdk.Event
Direct Known Subclasses:
EventAny, EventButton, EventClient, EventConfigure, EventCrossing, EventDND, EventExpose, EventFocus, EventKey, EventMotion, EventNoExpose, EventOwnerChange, EventProperty, EventProximity, EventScroll, EventSelection, EventSetting, EventVisibility, EventWindowState

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.gdk.Event.

public class Event
extends org.gnu.glib.Boxed


Constructor Summary
Event(Event event)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Event(EventType type)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 
Method Summary
static boolean eventsPending()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static Event get()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static EventExpose getGraphicsExpose(Window window)
          Deprecated. This method is intented for use with deprecated GTK widgets and as such has been deprecated.
 int getTime()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static Event peek()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static void put(Event anEvent)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 
Methods inherited from class org.gnu.glib.Boxed
equals, getBoxedFromHandle, hashCode
 
Methods inherited from class org.gnu.glib.Struct
getHandle, getNullHandle
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(EventType type)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Create a new event of a given type.

Parameters:
type -

Event

public Event(Event event)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Creates a copy of an event.

Parameters:
event -
Method Detail

eventsPending

public static boolean eventsPending()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Checks if any events are ready to be processed for any display.


peek

public static Event peek()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

If there is an event waiting in the event queue of some open display, returns a copy of it.

Returns:
A copy of the first Event on some event queue or null if no events are in any queue.

get

public static Event get()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Checks all open displays for an Event to process, to be processed on, fetching events from the windowing system if necessary.

Returns:
The next Event to be processed or null if no events are pending.

getGraphicsExpose

public static EventExpose getGraphicsExpose(Window window)
Deprecated. This method is intented for use with deprecated GTK widgets and as such has been deprecated.

Waits for a GraphicsExpose or NoExpose event from the X server.

Parameters:
window - Window to wait for the events for.
Returns:
An EventExpose event if a GraphicsExpose was received or null if a NoExpose event was received.

put

public static void put(Event anEvent)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Appends a copy of a given event onto the front of the event queue the event window's display or the default event queue if the event's window is null.

Parameters:
anEvent -

getTime

public int getTime()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Returns the timestamp of the event.