Package repast.simphony.ws
Class DisplayServer2D
- java.lang.Object
-
- repast.simphony.ws.DisplayServer
-
- repast.simphony.ws.DisplayServer2D
-
- All Implemented Interfaces:
ProjectionListener
public class DisplayServer2D extends DisplayServer
-
-
Field Summary
-
Fields inherited from class repast.simphony.ws.DisplayServer
descriptor, displayData, id, idCounter, layout, LOG, outgoing, outgoingAddr
-
-
Constructor Summary
Constructors Constructor Description DisplayServer2D(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout layout, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addObject(Object o)
void
doUpdate()
protected StyledLayer
findLayer(Object obj)
List<Pair<Integer,Object>>
getAgents(List<Integer> ids)
Gets the agents with the specified viz ids.void
init()
protected void
moveObject(Object o)
void
registerNetworkStyle(Network<?> network, EdgeStyleOGL2D style)
void
registerStyle(Class<?> clazz, StyleOGL2D<?> style)
protected void
removeObject(Object o)
-
Methods inherited from class repast.simphony.ws.DisplayServer
destroy, getId, projectionEventOccurred, update
-
-
-
-
Constructor Detail
-
DisplayServer2D
public DisplayServer2D(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout layout, int id)
-
-
Method Detail
-
init
public void init()
- Specified by:
init
in classDisplayServer
-
registerStyle
public void registerStyle(Class<?> clazz, StyleOGL2D<?> style)
-
registerNetworkStyle
public void registerNetworkStyle(Network<?> network, EdgeStyleOGL2D style)
-
findLayer
protected StyledLayer findLayer(Object obj)
-
addObject
protected void addObject(Object o)
- Specified by:
addObject
in classDisplayServer
-
removeObject
protected void removeObject(Object o)
- Specified by:
removeObject
in classDisplayServer
-
moveObject
protected void moveObject(Object o)
- Specified by:
moveObject
in classDisplayServer
-
doUpdate
public void doUpdate()
- Specified by:
doUpdate
in classDisplayServer
-
getAgents
public List<Pair<Integer,Object>> getAgents(List<Integer> ids)
Description copied from class:DisplayServer
Gets the agents with the specified viz ids.- Specified by:
getAgents
in classDisplayServer
- Returns:
- the list of agents with the specified ids.
-
-