swarm.space
Interface Object2dDisplayC
- All Known Implementing Classes:
- Object2dDisplayCImpl
- public interface Object2dDisplayC
- extends SwarmObjectS, SwarmObjectC
Object2dDisplay displays 2d arrays of objects..
Object2dDisplay helps display 2d arrays of objects. Create a Object2dDisplay, give it a Raster widget to draw on, a Discrete2d, a message to call on each object, and (optionally) a collection of objects and it will dispatch the message to all objects with the Raster widget as an argument. In addition, Object2dDisplay can help you make probees.
create$setDisplayWidget$setDiscrete2dToDisplay$setDisplayMessage
public Object create$setDisplayWidget$setDiscrete2dToDisplay$setDisplayMessage(Zone aZone,
Raster r,
Discrete2d c,
Selector s)
- Convenience constructor for Object2dDisplay
setDisplayWidget
public Object setDisplayWidget(Raster r)
- Set the display widget to use for drawing.
setDiscrete2dToDisplay
public Object setDiscrete2dToDisplay(Discrete2d c)
- Set the 2d array to draw.
setDisplayMessage
public Object setDisplayMessage(Selector s)
- Set the message to be sent to each object in the grid to make it draw itself.