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 Rectangle
getBounds()
InfoBox
getInfoBox()
String
getTooltip()
Dimension
render(Graphics2D graphics)
void
setBackgroundColor(Color backgroundColor)
void
setColor(Color color)
void
setFont(Font font)
void
setImage(BufferedImage image)
void
setInfoBox(InfoBox infoBox)
void
setOutline(boolean outline)
void
setPreferredLocation(Point preferredLocation)
void
setPreferredSize(Dimension preferredSize)
void
setText(String text)
void
setTooltip(String tooltip)
-
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
render
in interfaceRenderableEntity
-
setTooltip
public void setTooltip(String tooltip)
-
setPreferredLocation
public void setPreferredLocation(Point preferredLocation)
- Specified by:
setPreferredLocation
in interfaceLayoutableRenderableEntity
-
setPreferredSize
public void setPreferredSize(Dimension preferredSize)
- Specified by:
setPreferredSize
in 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:
getBounds
in interfaceLayoutableRenderableEntity
-
getInfoBox
public InfoBox getInfoBox()
-
-