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
FieldsModifier and TypeFieldDescriptionprotected intprotected doubleprotected doubleprotected WindowViewFields inherited from class org.rusherhack.client.api.ui.window.content.component.TextComponent
textFields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y -
Constructor Summary
ConstructorsConstructorDescriptionParagraphComponent(Window window) ParagraphComponent(Window window, String text) ParagraphComponent(Window window, String text, double lineSpacing) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetWidth()voidrenderContent(double mouseX, double mouseY, WindowView parent) voidsetColor(int color) voidsetLineSpacing(double lineSpacing) voidMethods inherited from class org.rusherhack.client.api.ui.window.content.component.TextComponent
charTyped, getText, keyTyped, mouseClicked, mouseScrolled, setTextMethods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setY, unfocusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseReleasedMethods 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:
renderContentin classTextComponent
-
getWidth
public double getWidth()- Overrides:
getWidthin classTextComponent
-
getHeight
public double getHeight()- Overrides:
getHeightin classTextComponent
-
updateHeight
public void updateHeight() -
setLineSpacing
public void setLineSpacing(double lineSpacing) -
setColor
public void setColor(int color)
-