swarm.space
Interface Object2dDisplayC


public abstract 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.


Method Summary
 Object setDiscrete2dToDisplay(Discrete2dImpl c)
          Set the 2d array to draw.
 Object setDisplayMessage(Selector s)
          Set the message to be sent to each object in the grid to make it draw itself.
 Object setDisplayWidget(RasterImpl r)
          Set the display widget to use for drawing.
 
Methods inherited from interface swarm.defobj.CreateC
createEnd
 

Method Detail

setDisplayWidget

public Object setDisplayWidget(RasterImpl r)
Set the display widget to use for drawing.

setDiscrete2dToDisplay

public Object setDiscrete2dToDisplay(Discrete2dImpl 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.