public class PZoomToEventHandler extends PBasicInputEventHandler
Constructor and Description |
---|
PZoomToEventHandler()
Constructs a PZoomToEventHandler that only recognizes BUTTON1 events.
|
Modifier and Type | Method and Description |
---|---|
void |
mousePressed(PInputEvent event)
Zooms the camera's view to the pressed node when button 1 is pressed.
|
protected void |
zoomTo(PInputEvent event)
Zooms the camera to the picked node of the event.
|
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter
public PZoomToEventHandler()
public void mousePressed(PInputEvent event)
mousePressed
in class PBasicInputEventHandler
event
- event representing the mouse pressprotected void zoomTo(PInputEvent event)
event
- Event from which to extract the zoom targetCopyright © 1995-2013 Piccolo2D. All Rights Reserved.