Interface DisplayEditor
- All Superinterfaces:
DisplayEditorLifecycle
- All Known Implementing Classes:
DisplayEditor2D,DisplayEditorGIS
Deprecated.
2D piccolo based code is being removed
Interface for classes that allow the editing of display. This includes
adding new agents, edges, etc.
- Author:
- Nick Collier
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds a new agent of the specified class the current agent collectionvoidagentsSelected(Object[] objs) Deprecated.Invoked when agents are selected.voidcloneAgent(Object agent) Deprecated.Clones the specified agent and adds the clone to the agent collection.voidedgesSelected(Object[] objs) Deprecated.Invoked when edges are selected.Deprecated.Gets the container of the visualized objects.voidDeprecated.Called when the palette mode is switched.voidnetSelected(Network net) Deprecated.Called when a network is selected in the palette.booleanremoveAgents(Object[] agents) Deprecated.Removes the specified agents from the agent collection.booleanremoveEdges(RepastEdge[] edges) Deprecated.Removes the specified edges from the network.Methods inherited from interface repast.simphony.visualization.DisplayEditorLifecycle
run, stop
-
Method Details
-
addAgent
Deprecated.Adds a new agent of the specified class the current agent collection- Parameters:
clazz- the class of agent to add
-
removeEdges
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
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
Deprecated.Clones the specified agent and adds the clone to the agent collection.- Parameters:
agent- the agent to clone
-
agentsSelected
Deprecated.Invoked when agents are selected.- Parameters:
objs- the selected agents
-
edgesSelected
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
Deprecated.Called when the palette mode is switched.- Parameters:
mode- the new mode
-
netSelected
Deprecated.Called when a network is selected in the palette.- Parameters:
net- the selected network
-