|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.piccolo.event.PBasicInputEventHandler
at.tuwien.ifs.somtoolbox.apps.viewer.handlers.MyWheelZoomEventHandler
public class MyWheelZoomEventHandler
Handles zooming by the mouse wheel.
| Field Summary | |
|---|---|
private static double |
maxScale
|
private static double |
minScale
|
| Constructor Summary | |
|---|---|
MyWheelZoomEventHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler |
|---|
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static double minScale
private static double maxScale
| Constructor Detail |
|---|
public MyWheelZoomEventHandler()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||