|
||||||||||
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.PDragEventHandler
public class PDragEventHandler
PDragEventHandler is a simple event handler for dragging a node on the canvas.
Constructor Summary | |
---|---|
PDragEventHandler()
|
Method Summary | |
---|---|
protected void |
drag(PInputEvent event)
Subclasses should override this method to get notified of the drag events in a drag sequence. |
protected void |
endDrag(PInputEvent event)
Subclasses should override this method to get notified of the end event in a drag sequence. |
protected PNode |
getDraggedNode()
|
boolean |
getMoveToFrontOnPress()
|
protected java.lang.String |
paramString()
Returns a string representing the state of this node. |
protected void |
setDraggedNode(PNode draggedNode)
|
void |
setMoveToFrontOnPress(boolean moveToFrontOnPress)
|
protected boolean |
shouldStartDragInteraction(PInputEvent event)
|
protected void |
startDrag(PInputEvent event)
Subclasses should override this method to get notified of the start of a new drag sequence. |
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
---|
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, setIsDragging, setMinDragStartDistance, 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 PDragEventHandler()
Method Detail |
---|
protected PNode getDraggedNode()
protected void setDraggedNode(PNode draggedNode)
protected boolean shouldStartDragInteraction(PInputEvent event)
shouldStartDragInteraction
in class PDragSequenceEventHandler
protected void startDrag(PInputEvent event)
PDragSequenceEventHandler
startDrag
in class PDragSequenceEventHandler
protected void drag(PInputEvent event)
PDragSequenceEventHandler
drag
in class PDragSequenceEventHandler
protected void endDrag(PInputEvent event)
PDragSequenceEventHandler
endDrag
in class PDragSequenceEventHandler
public boolean getMoveToFrontOnPress()
public void setMoveToFrontOnPress(boolean moveToFrontOnPress)
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 |