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

Quick Search    Search Deep

com.memoire.dja
Class DjaKeyListener  view DjaKeyListener download DjaKeyListener.java

java.lang.Object
  extended bycom.memoire.dja.DjaKeyListener
All Implemented Interfaces:
DjaOptions, java.util.EventListener, java.awt.event.KeyListener

public class DjaKeyListener
extends java.lang.Object
implements DjaOptions, java.awt.event.KeyListener


Field Summary
private  boolean anchor_
           
private  DjaGridInteractive grid_
           
private  int previous_
           
 
Fields inherited from interface com.memoire.dja.DjaOptions
ABSOLUTE, anchorsColor, ANY, attachsColor, AUTO, BOTH, CENTER, closeX, closeY, controlsColor, defaultBigFont, defaultBoldFont, defaultPlainFont, defaultSmallFont, deltaX, deltaY, DISK_BG, DISK_EMPTY, DISK_FG, EAST, freesColor, handlesColor, HELPER, HORIZONTAL, LEFT, LEFT_TRIANGLE_BG, LEFT_TRIANGLE_EMPTY, LEFT_TRIANGLE_FG, LOSANGE_BG, LOSANGE_EMPTY, LOSANGE_FG, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_WEST, RELATIVE_ANCHOR, RELATIVE_ATTACH, RELATIVE_CONTROL, RELATIVE_NE, RELATIVE_NW, RELATIVE_SE, RELATIVE_SW, RELATIVE_TEXT_NE, RELATIVE_TEXT_NW, RELATIVE_TEXT_SE, RELATIVE_TEXT_SW, RIGHT, RIGHT_TRIANGLE_BG, RIGHT_TRIANGLE_EMPTY, RIGHT_TRIANGLE_FG, selectionBackground, selectionForeground, selectionTextColor, selectionZone, snap, SOUTH, SOUTH_EAST, SOUTH_WEST, SQUARE_BG, SQUARE_EMPTY, SQUARE_FG, VERTICAL, WEST
 
Constructor Summary
DjaKeyListener(DjaGridInteractive _grid)
           
 
Method Summary
 int getPreviousKey()
           
 void keyPressed(java.awt.event.KeyEvent _evt)
          This method is called when a key is pressed.
 void keyReleased(java.awt.event.KeyEvent _evt)
          This method is called when a key is released.
 void keyTyped(java.awt.event.KeyEvent _evt)
          This method is called when a key is typed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grid_

private DjaGridInteractive grid_

anchor_

private boolean anchor_

previous_

private int previous_
Constructor Detail

DjaKeyListener

public DjaKeyListener(DjaGridInteractive _grid)
Method Detail

getPreviousKey

public int getPreviousKey()

keyTyped

public void keyTyped(java.awt.event.KeyEvent _evt)
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 _evt)
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 _evt)
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