public class GenericKeyHandler
extends java.awt.event.KeyAdapter
Constructor and Description |
---|
GenericKeyHandler()
set the default values to null, they need to be attached from the outside
because we don't know where this key handler will be used, in which class
|
Modifier and Type | Method and Description |
---|---|
void |
attachMainFrame(MainFrame extMainFrame) |
void |
keyPressed(java.awt.event.KeyEvent e)
key press events for the program moved out of GLViewer to clean up code in
GL viewer.
|
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e)
parsing the keys typed and performing actions
|
public GenericKeyHandler()
public void attachMainFrame(MainFrame extMainFrame)
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class java.awt.event.KeyAdapter
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class java.awt.event.KeyAdapter
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class java.awt.event.KeyAdapter