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 classProgressBarComponent.LabelDisplayMode
-
Constructor Summary
Constructors Constructor Description ProgressBarComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglegetBounds()Dimensionrender(Graphics2D graphics)voidsetBackgroundColor(Color backgroundColor)voidsetCenterLabel(String centerLabel)voidsetFontColor(Color fontColor)voidsetForegroundColor(Color foregroundColor)voidsetLabelDisplayMode(ProgressBarComponent.LabelDisplayMode labelDisplayMode)voidsetLeftLabel(String leftLabel)voidsetMaximum(long maximum)voidsetMinimum(long minimum)voidsetPreferredLocation(Point preferredLocation)voidsetPreferredSize(Dimension preferredSize)voidsetRightLabel(String rightLabel)voidsetValue(double value)
-
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
renderin 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:
setPreferredLocationin interfaceLayoutableRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension preferredSize)
- Specified by:
setPreferredSizein interfaceLayoutableRenderableEntity
-
getBounds
public Rectangle getBounds()
- Specified by:
getBoundsin interfaceLayoutableRenderableEntity
-
-