Class TextComponent
- java.lang.Object
-
- net.runelite.client.ui.overlay.components.TextComponent
-
- All Implemented Interfaces:
RenderableEntity
public class TextComponent extends Object implements RenderableEntity
-
-
Constructor Summary
Constructors Constructor Description TextComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dimension
render(Graphics2D graphics)
void
setColor(Color color)
void
setFont(Font font)
The text font.void
setOutline(boolean outline)
void
setPosition(Point position)
void
setText(String text)
-
-
-
Method Detail
-
render
public Dimension render(Graphics2D graphics)
- Specified by:
render
in interfaceRenderableEntity
-
setText
public void setText(String text)
-
setPosition
public void setPosition(Point position)
-
setColor
public void setColor(Color color)
-
setOutline
public void setOutline(boolean outline)
-
setFont
public void setFont(@Nullable Font font)
The text font.
-
-