|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DrawPolicy
Called by Sparse2DPortrayal to determine if all objects should be drawn or only one. The Bags provided contain objects all sitting in the same cell location onscreen.
Method Summary | |
---|---|
boolean |
objectToDraw(Bag fromHere,
Bag addToHere)
Specifies objects which should be drawn at a given location, and which objects should not. |
Method Detail |
---|
boolean objectToDraw(Bag fromHere, Bag addToHere)
This function should usually return true. However if you wish to use all the objects in the fromHere Bag, in exactly the order in which they appear, you can be quite a bit more efficient by not bothering to add the objects into the addToHere bag and instead simply returning false, in which case the fromHere bag will be used instead.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |