Interface DisplayEditor
-
- All Superinterfaces:
DisplayEditorLifecycle
- All Known Implementing Classes:
DisplayEditor2D
,DisplayEditorGIS
public interface DisplayEditor extends DisplayEditorLifecycle
Deprecated.2D piccolo based code is being removedInterface 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 class
DisplayEditor.Mode
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract 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
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.VisualizedObjectContainer
getContainer()
Deprecated.Gets the container of the visualized objects.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.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.-
Methods inherited from interface repast.simphony.visualization.DisplayEditorLifecycle
run, stop
-
-
-
-
Method Detail
-
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
VisualizedObjectContainer 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
-
-