|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor com.sun.j3d.utils.behaviors.vp.WandViewBehavior.ResetViewListener
public class WandViewBehavior.ResetViewListener
Resets the view back to the home transform when a specified number of buttons are down simultaneously.
WandViewBehavior.setResetViewButtonCount6D(int)
,
ViewPlatformBehavior.setHomeTransform
Constructor Summary | |
---|---|
WandViewBehavior.ResetViewListener(Sensor s,
int count)
Creates a sensor listener that resets the view when the specified number of buttons are down simultaneously. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.j3d.utils.behaviors.sensor.SensorInputAdaptor |
---|
clicked, dragged, released |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WandViewBehavior.ResetViewListener(Sensor s, int count)
s
- the sensor to listen tocount
- the number of buttons that must be down simultaneouslyMethod Detail |
---|
public void pressed(SensorEvent e)
SensorButtonListener
pressed
in interface SensorButtonListener
pressed
in class SensorInputAdaptor
e
- the sensor eventpublic void read(SensorEvent e)
SensorReadListener
dispatchEvents
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 SensorReadListener
read
in class SensorInputAdaptor
e
- the sensor event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |