public class MyWheelZoomEventHandler
extends edu.umd.cs.piccolo.event.PBasicInputEventHandler
Modifier and Type | Field and Description |
---|---|
private static double |
maxScale |
private static double |
minScale |
Constructor and Description |
---|
MyWheelZoomEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
mouseWheelRotated(edu.umd.cs.piccolo.event.PInputEvent e) |
static void |
processZoomEvent(edu.umd.cs.piccolo.event.PInputEvent e,
int zoomDirection,
edu.umd.cs.piccolo.PCamera camera)
This method actually handles the zoom event; the method is also used by the key event handler in
SOMPane . |
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toString
public void mouseWheelRotated(edu.umd.cs.piccolo.event.PInputEvent e)
mouseWheelRotated
in class edu.umd.cs.piccolo.event.PBasicInputEventHandler
public static void processZoomEvent(edu.umd.cs.piccolo.event.PInputEvent e, int zoomDirection, edu.umd.cs.piccolo.PCamera camera)
SOMPane
.