|
||||||||||
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()
|
protected void |
pan(PInputEvent e)
|
protected java.lang.String |
paramString()
Returns a string representing the state of this node. |
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, processEvent, setEventFilter, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
- protected void dragActivityStep(PInputEvent aEvent)
dragActivityStep
in class PDragSequenceEventHandler
protected double validatePanningSpeed(double delta)
protected java.lang.String paramString()
null
.
paramString
in class PDragSequenceEventHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |