Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.xmud.client
Class mykeyListener  view mykeyListener download mykeyListener.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.xmud.client.mykeyListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, java.lang.Runnable

public class mykeyListener
extends java.lang.Thread
implements java.awt.event.KeyListener


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int avatarid
           
(package private)  double avatarStep
           
(package private)  Vector3d back
           
(package private)  Vector3d down
           
(package private)  Vector3d forw
           
(package private)  javax.swing.JLabel label
           
(package private)  Vector3d left
           
(package private)  double lefta
           
(package private)  org.xmud.graphicsengine.movementHandler mh
           
private  java.lang.Object mutex
           
private  float pos
           
(package private)  Vector3d right
           
(package private)  double righta
           
(package private)  Vector3d up
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
mykeyListener(int avatarid, org.xmud.graphicsengine.movementHandler mh, javax.swing.JLabel label)
           
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent e)
          This method is called when a key is pressed.
 void keyReleased(java.awt.event.KeyEvent e)
          This method is called when a key is released.
 void keyTyped(java.awt.event.KeyEvent e)
          This method is called when a key is typed.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pos

private float pos

lefta

double lefta

righta

double righta

avatarStep

double avatarStep

mutex

private java.lang.Object mutex

forw

Vector3d forw

back

Vector3d back

right

Vector3d right

left

Vector3d left

up

Vector3d up

down

Vector3d down

mh

org.xmud.graphicsengine.movementHandler mh

label

javax.swing.JLabel label

avatarid

int avatarid
Constructor Detail

mykeyListener

public mykeyListener(int avatarid,
                     org.xmud.graphicsengine.movementHandler mh,
                     javax.swing.JLabel label)
Method Detail

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is typed. A key is considered typed when it and all modifiers have been pressed and released, mapping to a single virtual key.

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is released.

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener