Package com.sun.j3d.utils.behaviors.vp
Class WandViewBehavior.ResetViewListener
java.lang.Object
com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor
com.sun.j3d.utils.behaviors.vp.WandViewBehavior.ResetViewListener
- All Implemented Interfaces:
SensorButtonListener,SensorReadListener
- Enclosing class:
- WandViewBehavior
Resets the view back to the home transform when a specified number of
buttons are down simultaneously.
-
Constructor Summary
ConstructorsConstructorDescriptionResetViewListener(Sensor s, int count) Creates a sensor listener that resets the view when the specified number of buttons are down simultaneously. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis 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.Methods inherited from class com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor
clicked, dragged, released
-
Constructor Details
-
ResetViewListener
Creates a sensor listener that resets the view when the specified number of buttons are down simultaneously.- Parameters:
s- the sensor to listen tocount- the number of buttons that must be down simultaneously
-
-
Method Details
-
pressed
Description copied from interface:SensorButtonListenerThis method is called when a sensor's button is pressed.- Specified by:
pressedin interfaceSensorButtonListener- Overrides:
pressedin classSensorInputAdaptor- Parameters:
e- the sensor event
-
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- Overrides:
readin classSensorInputAdaptor- Parameters:
e- the sensor event
-