j3d.examples.behavior
Class GunController
java.lang.Object
j3d.examples.behavior.GunController
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.util.EventListener
public class GunController
- extends java.lang.Object
- implements java.awt.event.KeyListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GunController
public GunController()
setCanvas3D
public void setCanvas3D(javax.media.j3d.Canvas3D c3d)
setView
public void setView(javax.media.j3d.View view)
setGun
public void setGun(javax.media.j3d.BranchGroup gun)
setTransformGroup
public void setTransformGroup(javax.media.j3d.TransformGroup gunXformGroup)
trackView
public void trackView()
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyPressed2
public void keyPressed2(java.awt.event.KeyEvent e)
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener