net.java.games.input
Class Event

java.lang.Object
  extended by net.java.games.input.Event

public final class Event
extends java.lang.Object


Constructor Summary
Event()
           
 
Method Summary
 Component getComponent()
           
 long getNanos()
          Return the time the event happened, in nanoseconds.
 float getValue()
           
 void set(Component component, float value, long nanos)
           
 void set(Event other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

set

public final void set(Event other)

set

public final void set(Component component,
                      float value,
                      long nanos)

getComponent

public final Component getComponent()

getValue

public final float getValue()

getNanos

public final long getNanos()
Return the time the event happened, in nanoseconds. The time is relative and therefore can only be used to compare with other event times.


toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object