Class SelectionHandler
- java.lang.Object
-
- org.piccolo2d.event.PBasicInputEventHandler
-
- repast.simphony.visualization.editor.SelectionHandler
-
- All Implemented Interfaces:
EventListener
,org.piccolo2d.event.PInputEventListener
,PEditorEventListener
public class SelectionHandler extends org.piccolo2d.event.PBasicInputEventHandler implements PEditorEventListener
Deprecated.2D piccolo based code is being removedEvent handler for selecting nodes.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description SelectionHandler(org.piccolo2d.PCanvas canvas)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addNodeSelectionListener(PNodeSelectionListener listener)
Deprecated.void
destroy()
Deprecated.Cleans up anything created by this listener in init.void
init()
Deprecated.Initializes this listener.void
mouseClicked(org.piccolo2d.event.PInputEvent event)
Deprecated.void
objectsSelected(Object[] objs)
Deprecated.Invoked when the specified objects have been selected in code external to thisprotected void
selectNodes(org.piccolo2d.util.PStack stack)
Deprecated.void
start()
Deprecated.Starts the listener.void
stop()
Deprecated.Stops the listener.-
Methods inherited from class org.piccolo2d.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, processEvent, setEventFilter
-
-
-
-
Method Detail
-
mouseClicked
public void mouseClicked(org.piccolo2d.event.PInputEvent event)
Deprecated.- Overrides:
mouseClicked
in classorg.piccolo2d.event.PBasicInputEventHandler
-
addNodeSelectionListener
public void addNodeSelectionListener(PNodeSelectionListener listener)
Deprecated.
-
objectsSelected
public void objectsSelected(Object[] objs)
Deprecated.Invoked when the specified objects have been selected in code external to this- Parameters:
objs
- the selected objects
-
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
-
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
-
selectNodes
protected void selectNodes(org.piccolo2d.util.PStack stack)
Deprecated.
-
-