public interface DrawPolicy
Modifier and Type | Method and Description |
---|---|
boolean |
objectToDraw(Bag fromHere,
Bag addToHere)
Specifies objects which should be drawn at a given location, and which objects should not.
|
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.