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 removedDisplayEditor for gis displays.- Author:
- Nick Collier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface repast.simphony.visualization.editor.DisplayEditor
DisplayEditor.Mode
-
-
Constructor Summary
Constructors Constructor Description DisplayEditorGIS(DisplayGIS display, JPanel panel, EditorNotifier notifier)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAgent(Class clazz)
Deprecated.Adds a new agent of the specified class the current agent collectionvoid
addAgentAt(List<org.locationtech.jts.geom.Coordinate> coords, GeometryUtil.GeometryType type)
Deprecated.Adds the current object to add at the specified coordinates.void
addCanceled()
Deprecated.Notifies this editor that an add was canceled.RepastEdge
addEdge(Object source, Object target, List<org.locationtech.jts.geom.Coordinate> coords)
Deprecated.Creates and returns a RepastEdge in the currently selected network.void
addModalListener(DisplayEditor.Mode mode, PEditorEventListener listener)
Deprecated.void
addModelessListener(PEditorEventListener listener)
Deprecated.void
agentsSelected(Object[] objs)
Deprecated.Invoked when agents are selected.void
cloneAgent(Object agent)
Deprecated.Clones the specified agent and adds the clone to the agent collection.static org.locationtech.jts.geom.LineString
createLineString(List<org.locationtech.jts.geom.Coordinate> coords)
Deprecated.static org.locationtech.jts.geom.MultiLineString
createMultiLineString(List<org.locationtech.jts.geom.LineString> lines)
Deprecated.void
edgesSelected(Object[] objs)
Deprecated.Invoked when edges are selected.VisualizedObjectContainer
getContainer()
Deprecated.Gets the container of the visualized objects.void
initAddListener(GISAddListener listener)
Deprecated.void
modeSwitched(DisplayEditor.Mode mode)
Deprecated.Called when the palette mode is switched.void
netSelected(Network net)
Deprecated.Called when a network is selected in the palette.void
objectsSelected(List<Object> objs)
Deprecated.Invoked when objects have been selected.void
projectionEventOccurred(ProjectionEvent evt)
Deprecated.Invoked when a projection event occurs.boolean
removeAgents(Object[] agents)
Deprecated.Removes the specified agents from the agent collection.boolean
removeEdges(RepastEdge[] edges)
Deprecated.Removes the specified edges from the network.void
run()
Deprecated.Runs the editor.void
stop()
Deprecated.Stops the Editor and performs any clean up.
-
-
-
Constructor Detail
-
DisplayEditorGIS
public DisplayEditorGIS(DisplayGIS display, JPanel panel, EditorNotifier notifier)
Deprecated.
-
-
Method Detail
-
addModelessListener
public void addModelessListener(PEditorEventListener listener)
Deprecated.
-
addModalListener
public void addModalListener(DisplayEditor.Mode mode, PEditorEventListener listener)
Deprecated.
-
initAddListener
public void initAddListener(GISAddListener listener)
Deprecated.
-
modeSwitched
public void modeSwitched(DisplayEditor.Mode mode)
Deprecated.Called when the palette mode is switched.- Specified by:
modeSwitched
in interfaceDisplayEditor
- Parameters:
mode
- the new mode
-
netSelected
public void netSelected(Network net)
Deprecated.Called when a network is selected in the palette.- Specified by:
netSelected
in interfaceDisplayEditor
- Parameters:
net
- the selected network
-
objectsSelected
public void objectsSelected(List<Object> objs)
Deprecated.Invoked when objects have been selected.- Specified by:
objectsSelected
in 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
public void agentsSelected(Object[] objs)
Deprecated.Invoked when agents are selected.- Specified by:
agentsSelected
in interfaceDisplayEditor
- Parameters:
objs
- the selected agents
-
edgesSelected
public void edgesSelected(Object[] objs)
Deprecated.Invoked when edges are selected.- Specified by:
edgesSelected
in interfaceDisplayEditor
- 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 interfaceDisplayEditor
- 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 interfaceDisplayEditor
- 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 interfaceDisplayEditor
- 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 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:
run
in interfaceDisplayEditorLifecycle
-
stop
public void stop()
Deprecated.Stops the Editor and performs any clean up.- Specified by:
stop
in interfaceDisplayEditorLifecycle
-
projectionEventOccurred
public void projectionEventOccurred(ProjectionEvent evt)
Deprecated.Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Parameters:
evt
- the object describing the event
-
getContainer
public VisualizedObjectContainer getContainer()
Deprecated.Gets the container of the visualized objects.- Specified by:
getContainer
in interfaceDisplayEditor
- Returns:
- the container of the visualized objects.
-
-