Class Toast

java.lang.Object
org.baseagent.ui.Toast

public class Toast extends Object
  • Constructor Details

    • Toast

      public Toast(String text, int graphicX, int graphicY, int width, int height)
    • Toast

      public Toast(String text, int graphicX, int graphicY, int width, int height, long duration)
    • Toast

      public Toast(long startTime, long endTime, String text, int graphicX, int graphicY, int width, int height)
  • Method Details

    • setStartTime

      public void setStartTime(long startTime)
    • getStartTime

      public long getStartTime()
    • setEndTime

      public void setEndTime(long endTime)
    • getEndTime

      public long getEndTime()
    • setDuration

      public void setDuration(long duration)
    • getDuration

      public long getDuration()
    • needsTimes

      public boolean needsTimes()
    • activeWhen

      public void activeWhen(Predicate<Simulation> activeCondition)
    • getActiveCondition

      public Predicate<Simulation> getActiveCondition()
    • removeWhen

      public void removeWhen(Predicate<Simulation> removeCondition)
    • getRemoveCondition

      public Predicate<Simulation> getRemoveCondition()
    • isActive

      public boolean isActive(Simulation simulation)
    • readyToRemove

      public boolean readyToRemove(Simulation simulation)
    • draw

      public void draw(GridCanvasContext gcc)