Class SpaceAddListener

java.lang.Object
repast.simphony.visualization.editor.SpaceAddListener
All Implemented Interfaces:
AddListener

public class SpaceAddListener extends Object implements AddListener
Deprecated.
2D piccolo based code is being removed
Listens for add events and prepares the space so that the agent will be added at the appropriate location.
Author:
Nick Collier
  • Constructor Details

  • Method Details

    • preAdd

      public boolean preAdd(Object obj, double... point)
      Deprecated.
      Called immediately prior to an agent being added.
      Specified by:
      preAdd in interface AddListener
      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 interface AddListener
    • getAddHandler

      public PEditorEventListener getAddHandler()
      Deprecated.
      Gets the PInputEvent handler that will handle the gui part of the adding.
      Specified by:
      getAddHandler in interface AddListener
      Returns:
      the PInputEvent handler that will handle the gui part of the adding.