Class DrawableAgent

All Implemented Interfaces:
MessageListener, HasStep, SimulationListener, Drawable
Direct Known Subclasses:
GridAgent, PathAgent

public class DrawableAgent extends Agent implements Drawable
  • Constructor Details

    • DrawableAgent

      public DrawableAgent()
  • Method Details

    • getDrawX

      public double getDrawX()
    • setDrawX

      public void setDrawX(double drawX)
    • getDrawY

      public double getDrawY()
    • setDrawY

      public void setDrawY(double drawY)
    • setColor

      public void setColor(javafx.scene.paint.Color color)
    • getColor

      public javafx.scene.paint.Color getColor()
    • getColorOrUse

      public javafx.scene.paint.Color getColorOrUse(javafx.scene.paint.Color defaultColor)
    • draw

      public void draw(GridCanvasContext gcc)
      Description copied from interface: Drawable
      Draw component to the canvas.
      Specified by:
      draw in interface Drawable
    • setDrawable

      public void setDrawable(Drawable drawable)
    • getDrawable

      public Drawable getDrawable()
    • removeDrawable

      public void removeDrawable()