Class Timer
- java.lang.Object
-
- net.runelite.client.ui.overlay.infobox.InfoBox
-
- net.runelite.client.ui.overlay.infobox.Timer
-
- Direct Known Subclasses:
AlchemyRoomTimer
public class Timer extends InfoBox
-
-
Constructor Summary
Constructors Constructor Description Timer(long period, ChronoUnit unit, BufferedImage image, Plugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cull()
Duration
getDuration()
Instant
getEndTime()
Instant
getStartTime()
String
getText()
Color
getTextColor()
boolean
render()
void
setDuration(Duration duration)
Update the timer duration *relative to the start time*String
toString()
void
updateDuration(Duration duration)
Update the timer duration relative to now-
Methods inherited from class net.runelite.client.ui.overlay.infobox.InfoBox
getImage, getMenuEntries, getName, getTooltip, setImage, setMenuEntries, setPriority, setTooltip
-
-
-
-
Constructor Detail
-
Timer
public Timer(long period, ChronoUnit unit, BufferedImage image, Plugin plugin)
-
-
Method Detail
-
getTextColor
public Color getTextColor()
- Specified by:
getTextColor
in classInfoBox
-
setDuration
public void setDuration(Duration duration)
Update the timer duration *relative to the start time*- Parameters:
duration
-
-
updateDuration
public void updateDuration(Duration duration)
Update the timer duration relative to now- Parameters:
duration
-
-
getStartTime
public Instant getStartTime()
-
getEndTime
public Instant getEndTime()
-
getDuration
public Duration getDuration()
-
-