com.jogamp.newt.event
Class NEWTEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jogamp.newt.event.NEWTEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InputEvent, PaintEvent, WindowEvent

public class NEWTEvent
extends EventObject

NEWT events are provided for notification purposes ONLY;
The NEWT will automatically handle the event semantics internally, regardless of whether a program is receiving these events or not.
The actual event semantic is processed before the event is send.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected NEWTEvent(int eventType, Object source, long when)
           
 
Method Summary
 int getEventType()
          Returns the event type of this event.
 long getWhen()
          Returns the timestamp, in milliseconds, of this event.
 boolean isSystemEvent()
          Indicates whether this event was produced by the system or generated by user code.
static String toHexString(int hex)
           
static String toHexString(long hex)
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NEWTEvent

protected NEWTEvent(int eventType,
                    Object source,
                    long when)
Method Detail

isSystemEvent

public final boolean isSystemEvent()
Indicates whether this event was produced by the system or generated by user code.


getEventType

public final int getEventType()
Returns the event type of this event.


getWhen

public final long getWhen()
Returns the timestamp, in milliseconds, of this event.


toString

public String toString()
Overrides:
toString in class EventObject

toHexString

public static String toHexString(int hex)

toHexString

public static String toHexString(long hex)


Copyright 2010 JogAmp Community.