Package org.baseagent.ui
Interface Drawable
- All Known Implementing Classes:
Beacon,ConnectGridPositionsCustomDrawable,DrawableAgent,EmbodiedAgent,GridAgent,PathAgent,Pheromone
public interface Drawable
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(GridCanvasContext gcc) Draw component to the canvas.default voidDraw to the canvas *after* drawing the agents or beacons or other drawables.default voidDraw to the canvas *before* drawing the agents or beacons or other drawables.
-
Method Details
-
drawBefore
Draw to the canvas *before* drawing the agents or beacons or other drawables. Use this to draw a component's view of the world without overwriting the components. -
draw
Draw component to the canvas. -
drawAfter
Draw to the canvas *after* drawing the agents or beacons or other drawables. Use this to draw overlays on top of the components.
-