Interface Drawable

All Known Implementing Classes:
Beacon, ConnectGridPositionsCustomDrawable, DrawableAgent, EmbodiedAgent, GridAgent, PathAgent, Pheromone

public interface Drawable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Draw component to the canvas.
    default void
    Draw to the canvas *after* drawing the agents or beacons or other drawables.
    default void
    Draw to the canvas *before* drawing the agents or beacons or other drawables.
  • Method Details

    • drawBefore

      default void drawBefore(GridCanvasContext gcc)
      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

      void draw(GridCanvasContext gcc)
      Draw component to the canvas.
    • drawAfter

      default void drawAfter(GridCanvasContext gcc)
      Draw to the canvas *after* drawing the agents or beacons or other drawables. Use this to draw overlays on top of the components.