Top Fields Constructors Methods
net.java.games.input

public final Class Event

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Component
private long
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Component
public long
getNanos()

Return the time the event happened, in nanoseconds.

public float
public void
set(Event other)

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

componentback to summary
private Component component
nanosback to summary
private long nanos
valueback to summary
private float value

Constructor Detail

Eventback to summary
public Event()

Method Detail

getComponentback to summary
public Component getComponent()
getNanosback to summary
public 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.

getValueback to summary
public float getValue()
setback to summary
public void set(Event other)
setback to summary
public void set(Component component, float value, long nanos)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object