Interface AddListener

All Known Implementing Classes:
GridAddListener, NetAddListener, SpaceAddListener

public interface AddListener
Deprecated.
2D piccolo based code is being removed
Listens for agent add events.
Author:
Nick Collier
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets the PInputEvent handler that will handle the gui part of the adding.
    void
    Deprecated.
    Called immediately after the agent has been added.
    boolean
    preAdd(Object obj, double... location)
    Deprecated.
    Called immediately prior to an agent being added.
  • Method Details

    • preAdd

      boolean preAdd(Object obj, double... location)
      Deprecated.
      Called immediately prior to an agent being added.
      Parameters:
      obj - the object that will be added
      location - the location at which the agent should be added. @return true if an object can be added to the specified location, otherwise false.
    • postAdd

      void postAdd()
      Deprecated.
      Called immediately after the agent has been added.
    • getAddHandler

      PEditorEventListener getAddHandler()
      Deprecated.
      Gets the PInputEvent handler that will handle the gui part of the adding.
      Returns:
      the PInputEvent handler that will handle the gui part of the adding.