Interface DisplayEditor

All Superinterfaces:
DisplayEditorLifecycle
All Known Implementing Classes:
DisplayEditor2D, DisplayEditorGIS

public interface DisplayEditor extends DisplayEditorLifecycle
Deprecated.
2D piccolo based code is being removed
Interface for classes that allow the editing of display. This includes adding new agents, edges, etc.
Author:
Nick Collier
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAgent(Class clazz)
    Deprecated.
    Adds a new agent of the specified class the current agent collection
    void
    Deprecated.
    Invoked when agents are selected.
    void
    Deprecated.
    Clones the specified agent and adds the clone to the agent collection.
    void
    Deprecated.
    Invoked when edges are selected.
    Deprecated.
    Gets the container of the visualized objects.
    void
    Deprecated.
    Called when the palette mode is switched.
    void
    Deprecated.
    Called when a network is selected in the palette.
    boolean
    removeAgents(Object[] agents)
    Deprecated.
    Removes the specified agents from the agent collection.
    boolean
    Deprecated.
    Removes the specified edges from the network.

    Methods inherited from interface repast.simphony.visualization.DisplayEditorLifecycle

    run, stop
  • Method Details

    • addAgent

      void addAgent(Class clazz)
      Deprecated.
      Adds a new agent of the specified class the current agent collection
      Parameters:
      clazz - the class of agent to add
    • removeEdges

      boolean removeEdges(RepastEdge[] edges)
      Deprecated.
      Removes the specified edges from the network.
      Parameters:
      edges - the edges to remove
      Returns:
      true if the remove was was confirmed and successful otherwise false.
    • removeAgents

      boolean removeAgents(Object[] agents)
      Deprecated.
      Removes the specified agents from the agent collection.
      Parameters:
      agents - the agents to remove
      Returns:
      true if the remove was confirmed and successful otherwise false.
    • cloneAgent

      void cloneAgent(Object agent)
      Deprecated.
      Clones the specified agent and adds the clone to the agent collection.
      Parameters:
      agent - the agent to clone
    • agentsSelected

      void agentsSelected(Object[] objs)
      Deprecated.
      Invoked when agents are selected.
      Parameters:
      objs - the selected agents
    • edgesSelected

      void edgesSelected(Object[] objs)
      Deprecated.
      Invoked when edges are selected.
      Parameters:
      objs - the selected edges
    • getContainer

      Deprecated.
      Gets the container of the visualized objects.
      Returns:
      the container of the visualized objects.
    • modeSwitched

      void modeSwitched(DisplayEditor.Mode mode)
      Deprecated.
      Called when the palette mode is switched.
      Parameters:
      mode - the new mode
    • netSelected

      void netSelected(Network net)
      Deprecated.
      Called when a network is selected in the palette.
      Parameters:
      net - the selected network