repast.simphony.visualization.editor
Class NetAddEdgeHandler

java.lang.Object
  extended by edu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended by edu.umd.cs.piccolo.event.PDragSequenceEventHandler
          extended by repast.simphony.visualization.editor.NetAddEdgeHandler
All Implemented Interfaces:
edu.umd.cs.piccolo.event.PInputEventListener, EventListener, PEditorEventListener

Deprecated. 2D piccolo based code is being removed

public class NetAddEdgeHandler
extends edu.umd.cs.piccolo.event.PDragSequenceEventHandler
implements PEditorEventListener

Event handler for adding edges.

Author:
Nick Collier

Constructor Summary
NetAddEdgeHandler(DisplayEditor2D editor, edu.umd.cs.piccolo.PCanvas canvas, Display2D display, EditorNotifier notifier)
          Deprecated.  
 
Method Summary
 void destroy()
          Deprecated. Cleans up anything created by this listener in init.
protected  void drag(edu.umd.cs.piccolo.event.PInputEvent event)
          Deprecated.  
protected  void endDrag(edu.umd.cs.piccolo.event.PInputEvent event)
          Deprecated.  
 void init()
          Deprecated. Initializes this listener.
protected  boolean shouldStartDragInteraction(edu.umd.cs.piccolo.event.PInputEvent event)
          Deprecated.  
 void start()
          Deprecated. Starts the listener.
protected  void startDrag(edu.umd.cs.piccolo.event.PInputEvent event)
          Deprecated.  
 void stop()
          Deprecated. Stops the listener.
 
Methods inherited from class edu.umd.cs.piccolo.event.PDragSequenceEventHandler
dragActivityFinalStep, dragActivityFirstStep, dragActivityStep, getDragActivity, getMinDragStartDistance, getMousePressedCanvasPoint, isDragging, mouseDragged, mousePressed, mouseReleased, paramString, setIsDragging, setMinDragStartDistance, 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
 
Methods inherited from interface edu.umd.cs.piccolo.event.PInputEventListener
processEvent
 

Constructor Detail

NetAddEdgeHandler

public NetAddEdgeHandler(DisplayEditor2D editor,
                         edu.umd.cs.piccolo.PCanvas canvas,
                         Display2D display,
                         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 interface PEditorEventListener

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 interface PEditorEventListener

shouldStartDragInteraction

protected boolean shouldStartDragInteraction(edu.umd.cs.piccolo.event.PInputEvent event)
Deprecated. 
Overrides:
shouldStartDragInteraction in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

startDrag

protected void startDrag(edu.umd.cs.piccolo.event.PInputEvent event)
Deprecated. 
Overrides:
startDrag in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

drag

protected void drag(edu.umd.cs.piccolo.event.PInputEvent event)
Deprecated. 
Overrides:
drag in class edu.umd.cs.piccolo.event.PDragSequenceEventHandler

endDrag

protected void endDrag(edu.umd.cs.piccolo.event.PInputEvent event)
Deprecated. 
Overrides:
endDrag in class edu.umd.cs.piccolo.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 interface PEditorEventListener

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 interface PEditorEventListener