Class SensorInputAdaptor
- java.lang.Object
-
- com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor
-
- All Implemented Interfaces:
SensorButtonListener
,SensorReadListener
- Direct Known Subclasses:
WandViewBehavior.ListenerBase
,WandViewBehavior.ResetViewListener
public class SensorInputAdaptor extends java.lang.Object implements SensorButtonListener, SensorReadListener
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.- Since:
- Java 3D 1.3
-
-
Constructor Summary
Constructors Constructor Description SensorInputAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clicked(SensorEvent e)
This method is currently not used bySensorEventAgent
, but is included here for future possible development.void
dragged(SensorEvent e)
This method is called with each invocation of thedispatchEvents
method ofSensorEventAgent
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 thedispatchEvents
method ofSensorEventAgent
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.
-
-
-
Method Detail
-
pressed
public void pressed(SensorEvent e)
Description copied from interface:SensorButtonListener
This method is called when a sensor's button is pressed.- Specified by:
pressed
in interfaceSensorButtonListener
- Parameters:
e
- the sensor event
-
released
public void released(SensorEvent e)
Description copied from interface:SensorButtonListener
This method is called when a sensor's button is released.- Specified by:
released
in interfaceSensorButtonListener
- Parameters:
e
- the sensor event
-
dragged
public void dragged(SensorEvent e)
Description copied from interface:SensorButtonListener
This method is called with each invocation of thedispatchEvents
method ofSensorEventAgent
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.- Specified by:
dragged
in interfaceSensorButtonListener
- Parameters:
e
- the sensor event
-
clicked
public void clicked(SensorEvent e)
Description copied from interface:SensorButtonListener
This method is currently not used bySensorEventAgent
, but is included here for future possible development. Its implementations should remain empty for the present.- Specified by:
clicked
in interfaceSensorButtonListener
-
read
public void read(SensorEvent e)
Description copied from interface:SensorReadListener
This method is called each time thedispatchEvents
method ofSensorEventAgent
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.- Specified by:
read
in interfaceSensorReadListener
- Parameters:
e
- the sensor event
-
-