edu.umd.cfar.lamp.viper.gui.canvas
Class ScrollWheelPanEventHandler
java.lang.Object
edu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.event.PDragSequenceEventHandler
edu.umd.cfar.lamp.viper.gui.canvas.ScrollWheelPanEventHandler
- All Implemented Interfaces:
- java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener
- public class ScrollWheelPanEventHandler
- extends edu.umd.cs.piccolo.event.PDragSequenceEventHandler
- Author:
- clin
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Method Summary |
protected void |
drag(edu.umd.cs.piccolo.event.PInputEvent e)
|
protected void |
dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent aEvent)
Do auto panning even when the mouse is not moving. |
boolean |
getAutopan()
|
protected void |
pan(edu.umd.cs.piccolo.event.PInputEvent e)
|
protected java.lang.String |
paramString()
Returns a string representing the state of this node. |
void |
setAutopan(boolean autopan)
|
void |
setMaxAutopanSpeed(double maxAutopanSpeed)
|
void |
setMinAutopanSpeed(double minAutopanSpeed)
|
protected double |
validatePanningSpeed(double speed)
|
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
dragActivityFinalStep, dragActivityFirstStep, endDrag, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDrag, startDragActivity, stopDragActivity |
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler |
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScrollWheelPanEventHandler
public ScrollWheelPanEventHandler()
drag
protected void drag(edu.umd.cs.piccolo.event.PInputEvent e)
pan
protected void pan(edu.umd.cs.piccolo.event.PInputEvent e)
setAutopan
public void setAutopan(boolean autopan)
getAutopan
public boolean getAutopan()
setMinAutopanSpeed
public void setMinAutopanSpeed(double minAutopanSpeed)
setMaxAutopanSpeed
public void setMaxAutopanSpeed(double maxAutopanSpeed)
dragActivityStep
protected void dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent aEvent)
- Do auto panning even when the mouse is not moving.
validatePanningSpeed
protected double validatePanningSpeed(double speed)
paramString
protected java.lang.String paramString()
- Returns a string representing the state of this node. This method is
intended to be used only for debugging purposes, and the content and
format of the returned string may vary between implementations. The
returned string may be empty but may not be
null
.
- Returns:
- a string representation of this node's state