Package org.baseagent.ui
Class Toast
java.lang.Object
org.baseagent.ui.Toast
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activeWhen
(Predicate<Simulation> activeCondition) void
draw
(GridCanvasContext gcc) long
long
long
boolean
isActive
(Simulation simulation) boolean
boolean
readyToRemove
(Simulation simulation) void
removeWhen
(Predicate<Simulation> removeCondition) void
setDuration
(long duration) void
setEndTime
(long endTime) void
setStartTime
(long startTime)
-
Constructor Details
-
Toast
-
Toast
-
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
-
getActiveCondition
-
removeWhen
-
getRemoveCondition
-
isActive
-
readyToRemove
-
draw
-