Class InfoBoxComponent
- java.lang.Object
-
- net.runelite.client.ui.overlay.components.InfoBoxComponent
-
- All Implemented Interfaces:
LayoutableRenderableEntity,RenderableEntity
public class InfoBoxComponent extends Object implements LayoutableRenderableEntity
-
-
Constructor Summary
Constructors Constructor Description InfoBoxComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglegetBounds()InfoBoxgetInfoBox()StringgetTooltip()Dimensionrender(Graphics2D graphics)voidsetBackgroundColor(Color backgroundColor)voidsetColor(Color color)voidsetFont(Font font)voidsetImage(BufferedImage image)voidsetInfoBox(InfoBox infoBox)voidsetOutline(boolean outline)voidsetPreferredLocation(Point preferredLocation)voidsetPreferredSize(Dimension preferredSize)voidsetText(String text)voidsetTooltip(String tooltip)
-
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
renderin interfaceRenderableEntity
-
setTooltip
public void setTooltip(String tooltip)
-
setPreferredLocation
public void setPreferredLocation(Point preferredLocation)
- Specified by:
setPreferredLocationin interfaceLayoutableRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension preferredSize)
- Specified by:
setPreferredSizein interfaceLayoutableRenderableEntity
-
setText
public void setText(String text)
-
setColor
public void setColor(Color color)
-
setFont
public void setFont(Font font)
-
setOutline
public void setOutline(boolean outline)
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
-
setImage
public void setImage(BufferedImage image)
-
setInfoBox
public void setInfoBox(InfoBox infoBox)
-
getTooltip
public String getTooltip()
-
getBounds
public Rectangle getBounds()
- Specified by:
getBoundsin interfaceLayoutableRenderableEntity
-
getInfoBox
public InfoBox getInfoBox()
-
-