de.fhpotsdam.unfolding.interactions
Class KeyboardHandler
java.lang.Object
de.fhpotsdam.unfolding.events.MapEventBroadcaster
de.fhpotsdam.unfolding.interactions.KeyboardHandler
public class KeyboardHandler
- extends MapEventBroadcaster
Handles keyboard input from the user and broadcasts MapEvents such as zoom and pan.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyboardHandler
public KeyboardHandler(processing.core.PApplet p,
UnfoldingMap... maps)
- Creates a KeyboardHandler for the given maps.
- Parameters:
p
- The PApplet.maps
- One or more maps.
KeyboardHandler
public KeyboardHandler(processing.core.PApplet p,
java.util.List<UnfoldingMap> maps)
- Creates a KeyboardHandler for the given maps.
- Parameters:
p
- The PApplet.maps
- A list of maps.
keyPressed
public void keyPressed(char key,
int keyCode)
keyReleased
public void keyReleased(char key,
int keyCode)
keyEvent
public void keyEvent(processing.event.KeyEvent keyEvent)