org.simbrain.gauge.graphics
Class KeyEventHandler

java.lang.Object
  extended by edu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended by org.simbrain.gauge.graphics.KeyEventHandler
All Implemented Interfaces:
PInputEventListener, EventListener

public class KeyEventHandler
extends PBasicInputEventHandler

KeyEventHandler handles key events to the GaugePanel.


Constructor Summary
KeyEventHandler(GaugePanel gaugePanel)
           
 
Method Summary
 GaugePanel getGp()
           
 void keyPressed(PInputEvent e)
           
 void setGp(GaugePanel gp)
           
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyEventHandler

public KeyEventHandler(GaugePanel gaugePanel)
Parameters:
gaugePanel - Gauge to handle key events.
Method Detail

keyPressed

public void keyPressed(PInputEvent e)
Overrides:
keyPressed in class PBasicInputEventHandler
Parameters:
e - Responds to key inputs.

setGp

public void setGp(GaugePanel gp)
Parameters:
gp - Gauge panel to respond to.

getGp

public GaugePanel getGp()
Returns:
Gauge panel to respond to.