artisynth.core.driver
Class GenericKeyHandler
java.lang.Object
java.awt.event.KeyAdapter
artisynth.core.driver.GenericKeyHandler
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.util.EventListener
public class GenericKeyHandler
- extends java.awt.event.KeyAdapter
- Author:
- andreio moved out the key listener to extend it
Constructor Summary |
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 |
Method Summary |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericKeyHandler
public 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
attachMainFrame
public void attachMainFrame(MainFrame extMainFrame)
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- parsing the keys typed and performing actions
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
- Overrides:
keyTyped
in class java.awt.event.KeyAdapter
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- key press events for the program moved out of GLViewer to clean up code in
GL viewer. This function belongs here
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
- Overrides:
keyPressed
in class java.awt.event.KeyAdapter
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
- Overrides:
keyReleased
in class java.awt.event.KeyAdapter