|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.event.PDragSequenceEventHandler
edu.umd.cs.piccolo.event.PPanEventHandler
public class PPanEventHandler
PPanEventHandler provides event handlers for basic panning of the canvas view with the left mouse. The interaction is that clicking and dragging the mouse translates the view so that the point on the surface stays under the mouse.
Constructor Summary | |
---|---|
PPanEventHandler()
|
Method Summary | |
---|---|
protected void |
drag(PInputEvent e)
Subclasses should override this method to get notified of the drag events in a drag sequence. |
protected void |
dragActivityStep(PInputEvent aEvent)
Do auto panning even when the mouse is not moving. |
boolean |
getAutopan()
|
double |
getMaxAutoPanSpeed()
Returns the maxAutoPan speed in pixels per second. |
double |
getMinAutoPanSpeed()
Returns the minAutoPan speed in pixels per second. |
protected void |
pan(PInputEvent e)
|
void |
setAutopan(boolean autopan)
|
void |
setMaxAutopanSpeed(double maxAutopanSpeed)
Set the maxAutoPan speed in pixes per second. |
void |
setMinAutopanSpeed(double minAutopanSpeed)
Set the minAutoPan speed in pixels per second. |
protected double |
validatePanningSpeed(double delta)
|
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
---|
dragActivityFinalStep, dragActivityFirstStep, endDrag, getDragActivity, 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, paramString, processEvent, setEventFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PPanEventHandler()
Method Detail |
---|
protected void drag(PInputEvent e)
PDragSequenceEventHandler
drag
in class PDragSequenceEventHandler
protected void pan(PInputEvent e)
public void setAutopan(boolean autopan)
public boolean getAutopan()
public void setMinAutopanSpeed(double minAutopanSpeed)
minAutopanSpeed
- public void setMaxAutopanSpeed(double maxAutopanSpeed)
maxAutopanSpeed
- public double getMinAutoPanSpeed()
public double getMaxAutoPanSpeed()
protected void dragActivityStep(PInputEvent aEvent)
dragActivityStep
in class PDragSequenceEventHandler
protected double validatePanningSpeed(double delta)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |