Class ElevatorSimulation.Control

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by ElevatorSimulation.Control
All Implemented Interfaces:
ActionListener, KeyListener, EventListener
Enclosing class:
ElevatorSimulation

private class ElevatorSimulation.Control
extends KeyAdapter
implements ActionListener

Provides simple keyboard control to the simulation by implementing the KeyListener interface.


Constructor Summary
private ElevatorSimulation.Control()
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 void keyTyped(KeyEvent e)
          Controls the simulation in response to key presses.
 
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElevatorSimulation.Control

private ElevatorSimulation.Control()
Method Detail

keyTyped

public void keyTyped(KeyEvent e)
Controls the simulation in response to key presses.

Specified by:
keyTyped in interface KeyListener
Overrides:
keyTyped in class KeyAdapter

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener