Class ParagraphComponent
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.TextComponent
org.rusherhack.client.api.ui.window.content.component.ParagraphComponent
- All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable
,org.rusherhack.core.interfaces.IHoverable
,org.rusherhack.core.interfaces.IScrollable
,org.rusherhack.core.interfaces.ITickable
,org.rusherhack.core.interfaces.ITypeable
- Direct Known Subclasses:
RichTextView.RichTextComponent
A TextContent with line wrapping
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected double
protected double
protected WindowView
Fields inherited from class org.rusherhack.client.api.ui.window.content.component.TextComponent
text
Fields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y
-
Constructor Summary
ConstructorDescriptionParagraphComponent
(Window window) ParagraphComponent
(Window window, String text) ParagraphComponent
(Window window, String text, double lineSpacing) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
getWidth()
void
renderContent
(double mouseX, double mouseY, WindowView parent) void
setColor
(int color) void
setLineSpacing
(double lineSpacing) void
Methods inherited from class org.rusherhack.client.api.ui.window.content.component.TextComponent
charTyped, getText, keyTyped, mouseClicked, mouseScrolled, setText
Methods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY, unfocus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseReleased
Methods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
-
Field Details
-
lineSpacing
protected double lineSpacing -
parent
-
heightCache
protected double heightCache -
color
protected int color
-
-
Constructor Details
-
ParagraphComponent
-
ParagraphComponent
-
ParagraphComponent
-
-
Method Details
-
renderContent
- Overrides:
renderContent
in classTextComponent
-
getWidth
public double getWidth()- Overrides:
getWidth
in classTextComponent
-
getHeight
public double getHeight()- Overrides:
getHeight
in classTextComponent
-
updateHeight
public void updateHeight() -
setLineSpacing
public void setLineSpacing(double lineSpacing) -
setColor
public void setColor(int color)
-