edu.umd.cs.piccolo.examples
Class GraphEditorExample.NodeDragHandler
java.lang.Object
edu.umd.cs.piccolo.event.PBasicInputEventHandler
edu.umd.cs.piccolo.event.PDragSequenceEventHandler
edu.umd.cs.piccolo.examples.GraphEditorExample.NodeDragHandler
- All Implemented Interfaces:
- PInputEventListener, EventListener
- Enclosing class:
- GraphEditorExample
class GraphEditorExample.NodeDragHandler
- extends PDragSequenceEventHandler
Method Summary |
void |
drag(PInputEvent e)
Subclasses should override this method to get notified of the drag events
in a drag sequence. |
void |
mouseEntered(PInputEvent e)
Will be invoked when the mouse enters a specified region. |
void |
mouseExited(PInputEvent e)
Will be invoked when the mouse leaves a specified region. |
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, 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, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, paramString, processEvent, setEventFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphEditorExample.NodeDragHandler
public GraphEditorExample.NodeDragHandler()
mouseEntered
public void mouseEntered(PInputEvent e)
- Description copied from class:
PBasicInputEventHandler
- Will be invoked when the mouse enters a specified region. Subclasses
should override this method to implement their own behavior.
- Overrides:
mouseEntered
in class PBasicInputEventHandler
- Parameters:
e
- object which can be queried for the event's details
mouseExited
public void mouseExited(PInputEvent e)
- Description copied from class:
PBasicInputEventHandler
- Will be invoked when the mouse leaves a specified region. Subclasses
should override this method to implement their own behavior.
- Overrides:
mouseExited
in class PBasicInputEventHandler
- Parameters:
e
- object which can be queried for the event's details
drag
public void drag(PInputEvent e)
- Description copied from class:
PDragSequenceEventHandler
- Subclasses should override this method to get notified of the drag events
in a drag sequence. Note that that overriding methods must still call
super.startDrag() for correct behavior.
- Overrides:
drag
in class PDragSequenceEventHandler
- Parameters:
e
- event that caused the drag
Copyright © 1995-2011 Piccolo2D. All Rights Reserved.