Class GridAddListener
- java.lang.Object
-
- repast.simphony.visualization.editor.GridAddListener
-
- All Implemented Interfaces:
AddListener
public class GridAddListener extends Object implements AddListener
Deprecated.2D piccolo based code is being removedListens for add events and prepares the grid so that the agent will be added at the appropriate location.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description GridAddListener(Grid grid, GridAddHandler handler)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PEditorEventListener
getAddHandler()
Deprecated.Gets the PInputEvent handler that will handle the gui part of the adding.void
postAdd()
Deprecated.Called immediately after the agent has been added.boolean
preAdd(Object obj, double... point)
Deprecated.Called immediately prior to an agent being added.
-
-
-
Constructor Detail
-
GridAddListener
public GridAddListener(Grid grid, GridAddHandler handler)
Deprecated.
-
-
Method Detail
-
preAdd
public boolean preAdd(Object obj, double... point)
Deprecated.Called immediately prior to an agent being added.- Specified by:
preAdd
in interfaceAddListener
- Parameters:
obj
-point
- the location at which the agent should be added. @return true if an agent can be added to the specified location, otherwise false.
-
postAdd
public void postAdd()
Deprecated.Called immediately after the agent has been added.- Specified by:
postAdd
in interfaceAddListener
-
getAddHandler
public PEditorEventListener getAddHandler()
Deprecated.Gets the PInputEvent handler that will handle the gui part of the adding.- Specified by:
getAddHandler
in interfaceAddListener
- Returns:
- the PInputEvent handler that will handle the gui part of the adding.
-
-