public abstract class AbstractDragSequenceEventHandler
extends edu.umd.cs.piccolo.event.PDragSequenceEventHandler
PDragSequenceEventHandler.endDrag(PInputEvent)
to do specific handling at the end of the
dragging.Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
allowedNodeTypes
Define what values for the
PNode.getAttribute(Object) are acceptable to select a PNode for
dragging. |
protected double |
clickX |
protected double |
clickY |
protected java.awt.geom.Point2D |
startPos |
Constructor and Description |
---|
AbstractDragSequenceEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent e) |
protected void |
startDrag(edu.umd.cs.piccolo.event.PInputEvent e) |
drag, dragActivityFinalStep, dragActivityFirstStep, endDrag, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, startDragActivity, stopDragActivity
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter, toString
protected java.awt.geom.Point2D startPos
protected double clickX
protected double clickY
protected java.lang.String[] allowedNodeTypes
PNode.getAttribute(Object)
are acceptable to select a PNode
for
dragging. Subclasses have to set values to this variable in their constructor, otherwise all PNodes will be
dragable.protected void dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent e)
dragActivityStep
in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler
protected void startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
startDrag
in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler