de.fhpotsdam.unfolding.interactions
Class MouseHandler
java.lang.Object
de.fhpotsdam.unfolding.events.MapEventBroadcaster
de.fhpotsdam.unfolding.interactions.MouseHandler
public class MouseHandler
- extends MapEventBroadcaster
Handles mouse input from the user and broadcasts MapEvents such as zoom and pan.
Constructor Summary |
MouseHandler(processing.core.PApplet p,
java.util.List<UnfoldingMap> maps)
Creates a MouseHandler for the given maps. |
MouseHandler(processing.core.PApplet p,
UnfoldingMap... maps)
Creates a MouseHandler for the given maps. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MouseHandler
public MouseHandler(processing.core.PApplet p,
UnfoldingMap... maps)
- Creates a MouseHandler for the given maps.
- Parameters:
p
- The PApplet.maps
- One or more maps.
MouseHandler
public MouseHandler(processing.core.PApplet p,
java.util.List<UnfoldingMap> maps)
- Creates a MouseHandler for the given maps.
- Parameters:
p
- The PApplet.maps
- A list of maps.
mouseClicked
public void mouseClicked()
mouseWheel
public void mouseWheel(float delta)
mouseDragged
public void mouseDragged()
mouseMoved
public void mouseMoved()
mouseEvent
public void mouseEvent(processing.event.MouseEvent event)