Class EventKbd

java.lang.Object
  extended by EventKbd
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.TextListener, java.util.EventListener

public class EventKbd
extends java.lang.Object
implements java.awt.event.KeyListener, java.awt.event.TextListener

EventKbd class supports keyboard event handling for Flicker top level GUI. NOTE: MenuItem's and CheckboxMenuItem's are serviced by EventMenu. This is meant for keyboard commands that are NOT in the menus.

This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Flicker Mozilla and Legal files are available on http://open2dprot.sourceforge.net/Flicker

Version:
$Date$ $Revision$
Author:
P. Lemkin (LECB/NCI), G. Thornwall (SAIC), Frederick, MD
See Also:
Flicker Home

Field Summary
private  Flicker flk
           
private  Info info
           
private  Landmark lms
           
private  Util util
           
 
Constructor Summary
EventKbd(Flicker flk)
          EventKbd() - constructor
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent e)
          keyPressed() - handle key down events
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void textValueChanged(java.awt.event.TextEvent e)
          textValueChanged() - handle text value changed events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flk

private Flicker flk

util

private Util util

info

private Info info

lms

private Landmark lms
Constructor Detail

EventKbd

public EventKbd(Flicker flk)
EventKbd() - constructor

Parameters:
flk - instance
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
keyPressed() - handle key down events

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - is KeyEvent

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
textValueChanged() - handle text value changed events

Specified by:
textValueChanged in interface java.awt.event.TextListener
Parameters:
e - is TextEvent