com.jogamp.newt.event
Class NEWTEvent
java.lang.Object
java.util.EventObject
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
Constructor Summary |
protected |
NEWTEvent(int eventType,
Object source,
long when)
|
NEWTEvent
protected NEWTEvent(int eventType,
Object source,
long when)
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.