Class DisplayEditorGIS

    • Method Detail

      • addModelessListener

        public void addModelessListener​(PEditorEventListener listener)
        Deprecated.
      • initAddListener

        public void initAddListener​(GISAddListener listener)
        Deprecated.
      • netSelected

        public void netSelected​(Network net)
        Deprecated.
        Called when a network is selected in the palette.
        Specified by:
        netSelected in interface DisplayEditor
        Parameters:
        net - the selected network
      • addEdge

        public RepastEdge addEdge​(Object source,
                                  Object target,
                                  List<org.locationtech.jts.geom.Coordinate> coords)
        Deprecated.
        Creates and returns a RepastEdge in the currently selected network.
        Parameters:
        source - the edges source
        target - the edges target
        Returns:
        the created edge
      • createLineString

        public static org.locationtech.jts.geom.LineString createLineString​(List<org.locationtech.jts.geom.Coordinate> coords)
        Deprecated.
      • createMultiLineString

        public static org.locationtech.jts.geom.MultiLineString createMultiLineString​(List<org.locationtech.jts.geom.LineString> lines)
        Deprecated.
      • agentsSelected

        public void agentsSelected​(Object[] objs)
        Deprecated.
        Invoked when agents are selected.
        Specified by:
        agentsSelected in interface DisplayEditor
        Parameters:
        objs - the selected agents
      • edgesSelected

        public void edgesSelected​(Object[] objs)
        Deprecated.
        Invoked when edges are selected.
        Specified by:
        edgesSelected in interface DisplayEditor
        Parameters:
        objs - the selected edges
      • addAgent

        public void addAgent​(Class clazz)
        Deprecated.
        Adds a new agent of the specified class the current agent collection
        Specified by:
        addAgent in interface DisplayEditor
        Parameters:
        clazz - the class of agent to add
      • removeEdges

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

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

        public void cloneAgent​(Object agent)
        Deprecated.
        Clones the specified agent and adds the clone to the agent collection.
        Specified by:
        cloneAgent in interface DisplayEditor
        Parameters:
        agent - the agent to clone
      • addCanceled

        public void addCanceled()
        Deprecated.
        Notifies this editor that an add was canceled.
      • addAgentAt

        public void addAgentAt​(List<org.locationtech.jts.geom.Coordinate> coords,
                               GeometryUtil.GeometryType type)
        Deprecated.
        Adds the current object to add at the specified coordinates.
        Parameters:
        coords - the coordinates to add the agent at.
      • stop

        public void stop()
        Deprecated.
        Stops the Editor and performs any clean up.
        Specified by:
        stop in interface DisplayEditorLifecycle