java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.content.component.TextComponent
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:
ParagraphComponent

public class TextComponent extends WindowContent
A simple text content
  • Field Details

    • text

      protected String text
  • Constructor Details

    • TextComponent

      public TextComponent(Window window)
    • TextComponent

      public TextComponent(Window window, String text)
    • TextComponent

      public TextComponent(Window window, String text, boolean wrap)
  • Method Details

    • renderContent

      public void renderContent(double mouseX, double mouseY, WindowView parent)
      Specified by:
      renderContent in class WindowContent
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class WindowContent
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class WindowContent
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • charTyped

      public boolean charTyped(char character)
    • keyTyped

      public boolean keyTyped(int key, int scanCode, int modifiers)
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)