|
||||||||||
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
at.tuwien.ifs.somtoolbox.apps.viewer.handlers.AbstractDragSequenceEventHandler
public abstract class AbstractDragSequenceEventHandler
An abstract sequence handler that implements common tasks as drag start an drag activity step methods. Subclasses in
most cases will have to implement the PDragSequenceEventHandler.endDrag(PInputEvent)
to do specific handling at the end of the
dragging.
Field Summary | |
---|---|
protected 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 Point2D |
startPos
|
Constructor Summary | |
---|---|
AbstractDragSequenceEventHandler()
|
Method Summary | |
---|---|
protected void |
dragActivityStep(edu.umd.cs.piccolo.event.PInputEvent e)
|
protected void |
startDrag(edu.umd.cs.piccolo.event.PInputEvent e)
|
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
---|
drag, dragActivityFinalStep, dragActivityFirstStep, endDrag, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, 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, processEvent, setEventFilter, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Point2D startPos
protected double clickX
protected double clickY
protected 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.
Constructor Detail |
---|
public AbstractDragSequenceEventHandler()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |