de.uni_paderborn.fujaba.fsa.listener
Class ArrowMoveListener

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.listener.ArrowMoveListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, SelectionListener

public class ArrowMoveListener
extends java.lang.Object
implements java.awt.event.KeyListener, SelectionListener

This class implements the handling of Arrow-Keys for moving FSAObjects around. For each key_type event the selected objects are moved. Additionally each time the mouse is clicked on the pane, the class requests focus to receive the key events.

Version:
$Revision: 1.16.2.1 $
Author:
$Author: lowende $

Method Summary
static ArrowMoveListener get()
          No comment provided by developer, please add a comment to improve documentation.
 void keyPressed(java.awt.event.KeyEvent event)
          All selected objects will be moved according to the cursor keys.
 void keyReleased(java.awt.event.KeyEvent event)
          Nothing will be done on this event.
 void keyTyped(java.awt.event.KeyEvent event)
          Nothing will be done on this event.
 void selectionChanged(SelectionEvent event)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static ArrowMoveListener get()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

keyTyped

public void keyTyped(java.awt.event.KeyEvent event)
Nothing will be done on this event.

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
event - KeyEvent

keyPressed

public void keyPressed(java.awt.event.KeyEvent event)
All selected objects will be moved according to the cursor keys. If no object is selected the event will not be consumed and the scrollbars will receive the event and act accordingly.
    Modifiers
  1. Shift: 10 units
  2. Ctrl: 2 units
  3. no: 1 unit

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

keyReleased

public void keyReleased(java.awt.event.KeyEvent event)
Nothing will be done on this event.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
event - KeyEvent

selectionChanged

public void selectionChanged(SelectionEvent event)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
selectionChanged in interface SelectionListener
Parameters:
event - No description provided