Class GridMoveHandler
java.lang.Object
org.piccolo2d.event.PBasicInputEventHandler
org.piccolo2d.event.PDragSequenceEventHandler
repast.simphony.visualization.editor.GridMoveHandler
- All Implemented Interfaces:
EventListener,org.piccolo2d.event.PInputEventListener,PEditorEventListener
public class GridMoveHandler
extends org.piccolo2d.event.PDragSequenceEventHandler
implements PEditorEventListener
Deprecated.
2D piccolo based code is being removed
Event handler for moving nodes in a grid.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionGridMoveHandler(org.piccolo2d.PCanvas canvas, Display2D display, Grid grid, List<Network> nets, EditorNotifier notifier) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Deprecated.Cleans up anything created by this listener in init.protected voiddrag(org.piccolo2d.event.PInputEvent event) Deprecated.protected voidendDrag(org.piccolo2d.event.PInputEvent event) Deprecated.voidinit()Deprecated.Initializes this listener.protected booleanshouldStartDragInteraction(org.piccolo2d.event.PInputEvent event) Deprecated.voidstart()Deprecated.Starts the listener.protected voidstartDrag(org.piccolo2d.event.PInputEvent event) Deprecated.voidstop()Deprecated.Stops the listener.Methods inherited from class org.piccolo2d.event.PDragSequenceEventHandler
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, setIsDragging, setMinDragStartDistance, startDragActivity, stopDragActivityMethods inherited from class org.piccolo2d.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.piccolo2d.event.PInputEventListener
processEvent
-
Constructor Details
-
GridMoveHandler
public GridMoveHandler(org.piccolo2d.PCanvas canvas, Display2D display, Grid grid, List<Network> nets, EditorNotifier notifier) Deprecated.
-
-
Method Details
-
init
public void init()Deprecated.Initializes this listener. This happens only once whereas start / stop may occur multiple times.- Specified by:
initin interfacePEditorEventListener
-
destroy
public void destroy()Deprecated.Cleans up anything created by this listener in init. This happens only once whereas start / stop may occur multiple times.- Specified by:
destroyin interfacePEditorEventListener
-
shouldStartDragInteraction
protected boolean shouldStartDragInteraction(org.piccolo2d.event.PInputEvent event) Deprecated.- Overrides:
shouldStartDragInteractionin classorg.piccolo2d.event.PDragSequenceEventHandler
-
startDrag
protected void startDrag(org.piccolo2d.event.PInputEvent event) Deprecated.- Overrides:
startDragin classorg.piccolo2d.event.PDragSequenceEventHandler
-
drag
protected void drag(org.piccolo2d.event.PInputEvent event) Deprecated.- Overrides:
dragin classorg.piccolo2d.event.PDragSequenceEventHandler
-
endDrag
protected void endDrag(org.piccolo2d.event.PInputEvent event) Deprecated.- Overrides:
endDragin classorg.piccolo2d.event.PDragSequenceEventHandler
-
start
public void start()Deprecated.Starts the listener. At the very least this should add the listener to whatever PNode it is listening on.- Specified by:
startin interfacePEditorEventListener
-
stop
public void stop()Deprecated.Stops the listener. At the very least this should remove the listener to whatever PNode it is listening on.- Specified by:
stopin interfacePEditorEventListener
-