|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor
public class SensorInputAdaptor
The adaptor which receives sensor button and read events. The methods in this class are empty; the ones of interest should be overridden by classes extending this adaptor.
| Constructor Summary | |
|---|---|
SensorInputAdaptor()
|
|
| Method Summary | |
|---|---|
void |
clicked(SensorEvent e)
This method is currently not used by SensorEventAgent,
but is included here for future possible development. |
void |
dragged(SensorEvent e)
This method is called with each invocation of the dispatchEvents method of SensorEventAgent
if any button bound to the listener is down and has not changed
state since the last invocation. |
void |
pressed(SensorEvent e)
This method is called when a sensor's button is pressed. |
void |
read(SensorEvent e)
This method is called each time the dispatchEvents
method of SensorEventAgent is called and none of a
sensor's buttons have been handled by a button listener. |
void |
released(SensorEvent e)
This method is called when a sensor's button is released. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SensorInputAdaptor()
| Method Detail |
|---|
public void pressed(SensorEvent e)
SensorButtonListener
pressed in interface SensorButtonListenere - the sensor eventpublic void released(SensorEvent e)
SensorButtonListener
released in interface SensorButtonListenere - the sensor eventpublic void dragged(SensorEvent e)
SensorButtonListenerdispatchEvents method of SensorEventAgent
if any button bound to the listener is down and has not changed
state since the last invocation. The sensor value has not
necessarily changed from the last drag event.
dragged in interface SensorButtonListenere - the sensor eventpublic void clicked(SensorEvent e)
SensorButtonListenerSensorEventAgent,
but is included here for future possible development. Its
implementations should remain empty for the present.
clicked in interface SensorButtonListenerpublic void read(SensorEvent e)
SensorReadListenerdispatchEvents
method of SensorEventAgent is called and none of a
sensor's buttons have been handled by a button listener. The
sensor read value has not necessarily changed since the last read
event.
read in interface SensorReadListenere - the sensor event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||