Class DisplayEditor2D
java.lang.Object
repast.simphony.visualization.editor.DisplayEditor2D
- All Implemented Interfaces:
ProjectionListener
,DisplayEditorLifecycle
,DisplayEditor
,PNodeSelectionListener
public class DisplayEditor2D
extends Object
implements DisplayEditor, PNodeSelectionListener, ProjectionListener
Deprecated.
2D piccolo based code is being removed
DisplayEditor for 2D displays.
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.editor.DisplayEditor
DisplayEditor.Mode
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Adds a new agent of the specified class the current agent collectionvoid
addAgentAt
(double x, double y) Deprecated.Adds the current object to add at the specified coordinates.void
Deprecated.Notifies this editor that an add was canceled.Deprecated.Creates and returns a RepastEdge in the currently selected network.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.void
edgesSelected
(Object[] objs) Deprecated.Invoked when edges are selected.Deprecated.Gets the container of the visualized objects.void
Deprecated.Called when the palette mode is switched.void
netSelected
(Network network) Deprecated.Called when a network is selected in the palette.void
pNodesSelected
(List<org.piccolo2d.PNode> nodes) Deprecated.Invoked when nodes are selected.void
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.
-
Method Details
-
modeSwitched
Deprecated.Called when the palette mode is switched.- Specified by:
modeSwitched
in interfaceDisplayEditor
- Parameters:
mode
- the new mode
-
pNodesSelected
Deprecated.Invoked when nodes are selected.- Specified by:
pNodesSelected
in interfacePNodeSelectionListener
- Parameters:
nodes
- the selected nodes
-
addEdge
Deprecated.Creates and returns a RepastEdge in the currently selected network.- Parameters:
source
- the edges sourcetarget
- the edges target- Returns:
- the created edge
-
agentsSelected
Deprecated.Invoked when agents are selected.- Specified by:
agentsSelected
in interfaceDisplayEditor
- Parameters:
objs
- the selected agents
-
edgesSelected
Deprecated.Invoked when edges are selected.- Specified by:
edgesSelected
in interfaceDisplayEditor
- Parameters:
objs
- the selected edges
-
addAgent
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
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
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
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(double x, double y) Deprecated.Adds the current object to add at the specified coordinates.- Parameters:
x
- the x location to add the objecty
- the y location to add the object
-
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
Deprecated.Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Parameters:
evt
- the object describing the event
-
getContainer
Deprecated.Gets the container of the visualized objects.- Specified by:
getContainer
in interfaceDisplayEditor
- Returns:
- the container of the visualized objects.
-
netSelected
Deprecated.Description copied from interface:DisplayEditor
Called when a network is selected in the palette.- Specified by:
netSelected
in interfaceDisplayEditor
- Parameters:
network
- the selected network
-