|
||||||||||
| 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.tutorial.UserInteraction.SquiggleHandler
public class UserInteraction.SquiggleHandler
| Field Summary | |
|---|---|
protected PCanvas |
canvas
|
protected PPath |
squiggle
|
| Constructor Summary | |
|---|---|
UserInteraction.SquiggleHandler(PCanvas aCanvas)
|
|
| Method Summary | |
|---|---|
void |
drag(PInputEvent e)
Subclasses should override this method to get notified of the drag events in a drag sequence. |
void |
endDrag(PInputEvent e)
Subclasses should override this method to get notified of the end event in a drag sequence. |
void |
startDrag(PInputEvent e)
Subclasses should override this method to get notified of the start of a new drag sequence. |
void |
updateSquiggle(PInputEvent aEvent)
|
| Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
|---|
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, setIsDragging, setMinDragStartDistance, shouldStartDragInteraction, 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 |
| Field Detail |
|---|
protected PCanvas canvas
protected PPath squiggle
| Constructor Detail |
|---|
public UserInteraction.SquiggleHandler(PCanvas aCanvas)
| Method Detail |
|---|
public void startDrag(PInputEvent e)
PDragSequenceEventHandler
startDrag in class PDragSequenceEventHandlere - event that started the drag sequencepublic void drag(PInputEvent e)
PDragSequenceEventHandler
drag in class PDragSequenceEventHandlere - event that caused the dragpublic void endDrag(PInputEvent e)
PDragSequenceEventHandler
endDrag in class PDragSequenceEventHandlere - event that ended the drag sequencepublic void updateSquiggle(PInputEvent aEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||