gnu.gcj.xlib

Class XEvent

Known Direct Subclasses:
XButtonEvent, XConfigureEvent, XExposeEvent, XUnmapEvent

public class XEvent
extends Object

Base class for interpreters of specific X event types. For methods concerning all X events, see XAnyEvent.

Constructor Summary

XEvent(XAnyEvent event)
XEvent(int type, Display display)

Method Summary

XAnyEvent
getXAnyEvent()
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

Constructor Details

XEvent

public XEvent(XAnyEvent event)

XEvent

public XEvent(int type,
              Display display)

Method Details

getXAnyEvent

public XAnyEvent getXAnyEvent()

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.