Class ContSpaceMoveHandler
- java.lang.Object
-
- org.piccolo2d.event.PBasicInputEventHandler
-
- org.piccolo2d.event.PDragSequenceEventHandler
-
- repast.simphony.visualization.editor.ContSpaceMoveHandler
-
- All Implemented Interfaces:
EventListener
,org.piccolo2d.event.PInputEventListener
,PEditorEventListener
public class ContSpaceMoveHandler extends org.piccolo2d.event.PDragSequenceEventHandler implements PEditorEventListener
Deprecated.2D piccolo based code is being removedEvent handler for moving nodes in a continous space.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ContSpaceMoveHandler(org.piccolo2d.PCanvas canvas, Display2D display, ContinuousSpace space, List<Network> nets, EditorNotifier notifier)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
destroy()
Deprecated.Cleans up anything created by this listener in init.protected void
drag(org.piccolo2d.event.PInputEvent event)
Deprecated.protected void
endDrag(org.piccolo2d.event.PInputEvent event)
Deprecated.void
init()
Deprecated.Initializes this listener.protected boolean
shouldStartDragInteraction(org.piccolo2d.event.PInputEvent event)
Deprecated.void
start()
Deprecated.Starts the listener.protected void
startDrag(org.piccolo2d.event.PInputEvent event)
Deprecated.void
stop()
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, stopDragActivity
-
Methods inherited from class org.piccolo2d.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter
-
-
-
-
Constructor Detail
-
ContSpaceMoveHandler
public ContSpaceMoveHandler(org.piccolo2d.PCanvas canvas, Display2D display, ContinuousSpace space, List<Network> nets, EditorNotifier notifier)
Deprecated.
-
-
Method Detail
-
init
public void init()
Deprecated.Initializes this listener. This happens only once whereas start / stop may occur multiple times.- Specified by:
init
in 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:
destroy
in interfacePEditorEventListener
-
shouldStartDragInteraction
protected boolean shouldStartDragInteraction(org.piccolo2d.event.PInputEvent event)
Deprecated.- Overrides:
shouldStartDragInteraction
in classorg.piccolo2d.event.PDragSequenceEventHandler
-
startDrag
protected void startDrag(org.piccolo2d.event.PInputEvent event)
Deprecated.- Overrides:
startDrag
in classorg.piccolo2d.event.PDragSequenceEventHandler
-
drag
protected void drag(org.piccolo2d.event.PInputEvent event)
Deprecated.- Overrides:
drag
in classorg.piccolo2d.event.PDragSequenceEventHandler
-
endDrag
protected void endDrag(org.piccolo2d.event.PInputEvent event)
Deprecated.- Overrides:
endDrag
in 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:
start
in 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:
stop
in interfacePEditorEventListener
-
-