Class DisplayEditorGIS
java.lang.Object
repast.simphony.visualization.editor.gis.DisplayEditorGIS
- All Implemented Interfaces:
ProjectionListener,DisplayEditorLifecycle,DisplayEditor,ObjectSelectionListener
public class DisplayEditorGIS
extends Object
implements DisplayEditor, ObjectSelectionListener, ProjectionListener
Deprecated.
2D piccolo based code is being removed
DisplayEditor for gis displays.
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.editor.DisplayEditor
DisplayEditor.Mode -
Constructor Summary
ConstructorsConstructorDescriptionDisplayEditorGIS(DisplayGIS display, JPanel panel, EditorNotifier notifier) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds a new agent of the specified class the current agent collectionvoidaddAgentAt(List<org.locationtech.jts.geom.Coordinate> coords, GeometryUtil.GeometryType type) Deprecated.Adds the current object to add at the specified coordinates.voidDeprecated.Notifies this editor that an add was canceled.Deprecated.Creates and returns a RepastEdge in the currently selected network.voidaddModalListener(DisplayEditor.Mode mode, PEditorEventListener listener) Deprecated.voidaddModelessListener(PEditorEventListener listener) Deprecated.voidagentsSelected(Object[] objs) Deprecated.Invoked when agents are selected.voidcloneAgent(Object agent) Deprecated.Clones the specified agent and adds the clone to the agent collection.static org.locationtech.jts.geom.LineStringcreateLineString(List<org.locationtech.jts.geom.Coordinate> coords) Deprecated.static org.locationtech.jts.geom.MultiLineStringcreateMultiLineString(List<org.locationtech.jts.geom.LineString> lines) Deprecated.voidedgesSelected(Object[] objs) Deprecated.Invoked when edges are selected.Deprecated.Gets the container of the visualized objects.voidinitAddListener(GISAddListener listener) Deprecated.voidDeprecated.Called when the palette mode is switched.voidnetSelected(Network net) Deprecated.Called when a network is selected in the palette.voidobjectsSelected(List<Object> objs) Deprecated.Invoked when objects have been selected.voidDeprecated.Invoked when a projection event occurs.booleanremoveAgents(Object[] agents) Deprecated.Removes the specified agents from the agent collection.booleanremoveEdges(RepastEdge[] edges) Deprecated.Removes the specified edges from the network.voidrun()Deprecated.Runs the editor.voidstop()Deprecated.Stops the Editor and performs any clean up.
-
Constructor Details
-
DisplayEditorGIS
Deprecated.
-
-
Method Details
-
addModelessListener
Deprecated. -
addModalListener
Deprecated. -
initAddListener
Deprecated. -
modeSwitched
Deprecated.Called when the palette mode is switched.- Specified by:
modeSwitchedin interfaceDisplayEditor- Parameters:
mode- the new mode
-
netSelected
Deprecated.Called when a network is selected in the palette.- Specified by:
netSelectedin interfaceDisplayEditor- Parameters:
net- the selected network
-
objectsSelected
Deprecated.Invoked when objects have been selected.- Specified by:
objectsSelectedin interfaceObjectSelectionListener- Parameters:
objs- the selected nodes.
-
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 sourcetarget- 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
Deprecated.Invoked when agents are selected.- Specified by:
agentsSelectedin interfaceDisplayEditor- Parameters:
objs- the selected agents
-
edgesSelected
Deprecated.Invoked when edges are selected.- Specified by:
edgesSelectedin interfaceDisplayEditor- Parameters:
objs- the selected edges
-
addAgent
Deprecated.Adds a new agent of the specified class the current agent collection- Specified by:
addAgentin interfaceDisplayEditor- Parameters:
clazz- the class of agent to add
-
removeEdges
Deprecated.Removes the specified edges from the network.- Specified by:
removeEdgesin interfaceDisplayEditor- Parameters:
edges- the edges to remove- Returns:
- true if the remove was was confirmed and successful otherwise false.
-
removeAgents
Deprecated.Removes the specified agents from the agent collection.- Specified by:
removeAgentsin interfaceDisplayEditor- Parameters:
agents- the agents to remove- Returns:
- true if the remove was confirmed and successful otherwise false.
-
cloneAgent
Deprecated.Clones the specified agent and adds the clone to the agent collection.- Specified by:
cloneAgentin interfaceDisplayEditor- 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.
-
run
public void run()Deprecated.Runs the editor.- Specified by:
runin interfaceDisplayEditorLifecycle
-
stop
public void stop()Deprecated.Stops the Editor and performs any clean up.- Specified by:
stopin interfaceDisplayEditorLifecycle
-
projectionEventOccurred
Deprecated.Invoked when a projection event occurs.- Specified by:
projectionEventOccurredin interfaceProjectionListener- Parameters:
evt- the object describing the event
-
getContainer
Deprecated.Gets the container of the visualized objects.- Specified by:
getContainerin interfaceDisplayEditor- Returns:
- the container of the visualized objects.
-