j3d.examples.behavior
Class GunController

java.lang.Object
  extended by 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


Constructor Summary
GunController()
           
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyPressed2(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void setCanvas3D(javax.media.j3d.Canvas3D c3d)
           
 void setGun(javax.media.j3d.BranchGroup gun)
           
 void setTransformGroup(javax.media.j3d.TransformGroup gunXformGroup)
           
 void setView(javax.media.j3d.View view)
           
 void trackView()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GunController

public GunController()
Method Detail

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