gnu.gcj.xlib

Class XAnyEvent


public final class XAnyEvent
extends Object

Mutable event structure that can contain any data from any event type. Events can be constructed or loaded from the event queue.

Field Summary

static long
MASK_SUBSTRUCTURE_NOTIFY
static long
MASK_SUBSTRUCTURE_REDIRECT
static int
TYPE_BUTTON_PRESS
static int
TYPE_BUTTON_RELEASE
static int
TYPE_CIRCULATE_NOTIFY
static int
TYPE_CIRCULATE_REQUEST
static int
TYPE_CLIENT_MESSAGE
static int
TYPE_COLORMAP_NOTIFY
static int
TYPE_CONFIGURE_NOTIFY
static int
TYPE_CONFIGURE_REQUEST
static int
TYPE_CREATE_NOTIFY
static int
TYPE_DESTROY_NOTIFY
static int
TYPE_ENTER_NOTIFY
static int
TYPE_EXPOSE
static int
TYPE_FOCUS_IN
static int
TYPE_FOCUS_OUT
static int
TYPE_GRAPHICS_EXPOSE
static int
TYPE_GRAVITY_NOTIFY
static int
TYPE_KEYMAP_NOTIFY
static int
TYPE_KEY_PRESS
static int
TYPE_KEY_RELEASE
static int
TYPE_LEAVE_NOTIFY
static int
TYPE_MAPPING_NOTIFY
static int
TYPE_MAP_NOTIFY
static int
TYPE_MAP_REQUEST
static int
TYPE_MOTION_NOTIFY
static int
TYPE_NO_EXPOSE
static int
TYPE_PROPERTY_NOTIFY
static int
TYPE_REPARENT_NOTIFY
static int
TYPE_RESIZE_REQUEST
static int
TYPE_SELECTION_CLEAR
static int
TYPE_SELECTION_NOTIFY
static int
TYPE_SELECTION_REQUEST
static int
TYPE_UNMAP_NOTIFY
static int
TYPE_VISIBILITY_NOTIFY

Constructor Summary

XAnyEvent(Display display)

Method Summary

protected void
finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed.
long
getSerial()
int
getType()
Window
getWindow()
void
interrupt()
boolean
loadNext(boolean block)
Load next event into the event structure.
void
send(Window destination, boolean propagate, long mask)
void
setType(int type)
void
setWindow(Window window)
String
toString()
Convert this Object to a human-readable String.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

MASK_SUBSTRUCTURE_NOTIFY

public static final long MASK_SUBSTRUCTURE_NOTIFY
Field Value:
524288L

MASK_SUBSTRUCTURE_REDIRECT

public static final long MASK_SUBSTRUCTURE_REDIRECT
Field Value:
1048576L

TYPE_BUTTON_PRESS

public static final int TYPE_BUTTON_PRESS
Field Value:
4

TYPE_BUTTON_RELEASE

public static final int TYPE_BUTTON_RELEASE
Field Value:
5

TYPE_CIRCULATE_NOTIFY

public static final int TYPE_CIRCULATE_NOTIFY
Field Value:
26

TYPE_CIRCULATE_REQUEST

public static final int TYPE_CIRCULATE_REQUEST
Field Value:
27

TYPE_CLIENT_MESSAGE

public static final int TYPE_CLIENT_MESSAGE
Field Value:
33

TYPE_COLORMAP_NOTIFY

public static final int TYPE_COLORMAP_NOTIFY
Field Value:
32

TYPE_CONFIGURE_NOTIFY

public static final int TYPE_CONFIGURE_NOTIFY
Field Value:
22

TYPE_CONFIGURE_REQUEST

public static final int TYPE_CONFIGURE_REQUEST
Field Value:
23

TYPE_CREATE_NOTIFY

public static final int TYPE_CREATE_NOTIFY
Field Value:
16

TYPE_DESTROY_NOTIFY

public static final int TYPE_DESTROY_NOTIFY
Field Value:
17

TYPE_ENTER_NOTIFY

public static final int TYPE_ENTER_NOTIFY
Field Value:
7

TYPE_EXPOSE

public static final int TYPE_EXPOSE
Field Value:
12

TYPE_FOCUS_IN

public static final int TYPE_FOCUS_IN
Field Value:
9

TYPE_FOCUS_OUT

public static final int TYPE_FOCUS_OUT
Field Value:
10

TYPE_GRAPHICS_EXPOSE

public static final int TYPE_GRAPHICS_EXPOSE
Field Value:
13

TYPE_GRAVITY_NOTIFY

public static final int TYPE_GRAVITY_NOTIFY
Field Value:
24

TYPE_KEYMAP_NOTIFY

public static final int TYPE_KEYMAP_NOTIFY
Field Value:
11

TYPE_KEY_PRESS

public static final int TYPE_KEY_PRESS
Field Value:
2

TYPE_KEY_RELEASE

public static final int TYPE_KEY_RELEASE
Field Value:
3

TYPE_LEAVE_NOTIFY

public static final int TYPE_LEAVE_NOTIFY
Field Value:
8

TYPE_MAPPING_NOTIFY

public static final int TYPE_MAPPING_NOTIFY
Field Value:
34

TYPE_MAP_NOTIFY

public static final int TYPE_MAP_NOTIFY
Field Value:
19

TYPE_MAP_REQUEST

public static final int TYPE_MAP_REQUEST
Field Value:
20

TYPE_MOTION_NOTIFY

public static final int TYPE_MOTION_NOTIFY
Field Value:
6

TYPE_NO_EXPOSE

public static final int TYPE_NO_EXPOSE
Field Value:
14

TYPE_PROPERTY_NOTIFY

public static final int TYPE_PROPERTY_NOTIFY
Field Value:
28

TYPE_REPARENT_NOTIFY

public static final int TYPE_REPARENT_NOTIFY
Field Value:
21

TYPE_RESIZE_REQUEST

public static final int TYPE_RESIZE_REQUEST
Field Value:
25

TYPE_SELECTION_CLEAR

public static final int TYPE_SELECTION_CLEAR
Field Value:
29

TYPE_SELECTION_NOTIFY

public static final int TYPE_SELECTION_NOTIFY
Field Value:
31

TYPE_SELECTION_REQUEST

public static final int TYPE_SELECTION_REQUEST
Field Value:
30

TYPE_UNMAP_NOTIFY

public static final int TYPE_UNMAP_NOTIFY
Field Value:
18

TYPE_VISIBILITY_NOTIFY

public static final int TYPE_VISIBILITY_NOTIFY
Field Value:
15

Constructor Details

XAnyEvent

public XAnyEvent(Display display)

Method Details

finalize

protected void finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. You would think that this means it eventually is called on every Object, but this is not necessarily the case. If execution terminates abnormally, garbage collection does not always happen. Thus you cannot rely on this method to always work. For finer control over garbage collection, use references from the java.lang.ref package.

Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply super.finalize().

finalize() will be called by a Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.

If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.

It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.

Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls super.finalize().

The default implementation does nothing.

Overrides:
finalize in interface Object

getSerial

public long getSerial()

getType

public int getType()

getWindow

public Window getWindow()

interrupt

public void interrupt()

loadNext

public boolean loadNext(boolean block)
Load next event into the event structure.

send

public void send(Window destination,
                 boolean propagate,
                 long mask)

setType

public void setType(int type)

setWindow

public void setWindow(Window window)

toString

public String toString()
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 interface Object
Returns:
the String representing this Object, which may be null

Copyright (C) 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.