Class SensorInputAdaptor
java.lang.Object
com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor
- All Implemented Interfaces:
SensorButtonListener,SensorReadListener
- Direct Known Subclasses:
WandViewBehavior.ListenerBase,WandViewBehavior.ResetViewListener
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is currently not used bySensorEventAgent, but is included here for future possible development.voidThis method is called with each invocation of thedispatchEventsmethod ofSensorEventAgentif any button bound to the listener is down and has not changed state since the last invocation.voidThis method is called when a sensor's button is pressed.voidread(SensorEvent e) This method is called each time thedispatchEventsmethod ofSensorEventAgentis called and none of a sensor's buttons have been handled by a button listener.voidThis method is called when a sensor's button is released.
-
Constructor Details
-
SensorInputAdaptor
public SensorInputAdaptor()
-
-
Method Details
-
pressed
Description copied from interface:SensorButtonListenerThis method is called when a sensor's button is pressed.- Specified by:
pressedin interfaceSensorButtonListener- Parameters:
e- the sensor event
-
released
Description copied from interface:SensorButtonListenerThis method is called when a sensor's button is released.- Specified by:
releasedin interfaceSensorButtonListener- Parameters:
e- the sensor event
-
dragged
Description copied from interface:SensorButtonListenerThis method is called with each invocation of thedispatchEventsmethod ofSensorEventAgentif 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:
draggedin interfaceSensorButtonListener- Parameters:
e- the sensor event
-
clicked
Description copied from interface:SensorButtonListenerThis method is currently not used bySensorEventAgent, but is included here for future possible development. Its implementations should remain empty for the present.- Specified by:
clickedin interfaceSensorButtonListener
-
read
Description copied from interface:SensorReadListenerThis method is called each time thedispatchEventsmethod ofSensorEventAgentis 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:
readin interfaceSensorReadListener- Parameters:
e- the sensor event
-