Class ProgressBarComponent
- java.lang.Object
-
- net.runelite.client.ui.overlay.components.ProgressBarComponent
-
- All Implemented Interfaces:
LayoutableRenderableEntity
,RenderableEntity
public class ProgressBarComponent extends Object implements LayoutableRenderableEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProgressBarComponent.LabelDisplayMode
-
Constructor Summary
Constructors Constructor Description ProgressBarComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBounds()
Dimension
render(Graphics2D graphics)
void
setBackgroundColor(Color backgroundColor)
void
setCenterLabel(String centerLabel)
void
setFontColor(Color fontColor)
void
setForegroundColor(Color foregroundColor)
void
setLabelDisplayMode(ProgressBarComponent.LabelDisplayMode labelDisplayMode)
void
setLeftLabel(String leftLabel)
void
setMaximum(long maximum)
void
setMinimum(long minimum)
void
setPreferredLocation(Point preferredLocation)
void
setPreferredSize(Dimension preferredSize)
void
setRightLabel(String rightLabel)
void
setValue(double value)
-
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
render
in interfaceRenderableEntity
-
setMinimum
public void setMinimum(long minimum)
-
setMaximum
public void setMaximum(long maximum)
-
setValue
public void setValue(double value)
-
setLabelDisplayMode
public void setLabelDisplayMode(ProgressBarComponent.LabelDisplayMode labelDisplayMode)
-
setCenterLabel
public void setCenterLabel(String centerLabel)
-
setLeftLabel
public void setLeftLabel(String leftLabel)
-
setRightLabel
public void setRightLabel(String rightLabel)
-
setForegroundColor
public void setForegroundColor(Color foregroundColor)
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
-
setFontColor
public void setFontColor(Color fontColor)
-
setPreferredLocation
public void setPreferredLocation(Point preferredLocation)
- Specified by:
setPreferredLocation
in interfaceLayoutableRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension preferredSize)
- Specified by:
setPreferredSize
in interfaceLayoutableRenderableEntity
-
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interfaceLayoutableRenderableEntity
-
-