Class 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

public class ParagraphComponent extends TextComponent
A TextContent with line wrapping
  • Field Details

    • lineSpacing

      protected double lineSpacing
    • parent

      protected WindowView parent
    • heightCache

      protected double heightCache
    • color

      protected int color
  • Constructor Details

    • ParagraphComponent

      public ParagraphComponent(Window window)
    • ParagraphComponent

      public ParagraphComponent(Window window, String text)
    • ParagraphComponent

      public ParagraphComponent(Window window, String text, double lineSpacing)
  • Method Details

    • renderContent

      public void renderContent(double mouseX, double mouseY, WindowView parent)
      Overrides:
      renderContent in class TextComponent
    • getWidth

      public double getWidth()
      Overrides:
      getWidth in class TextComponent
    • getHeight

      public double getHeight()
      Overrides:
      getHeight in class TextComponent
    • updateHeight

      public void updateHeight()
    • setLineSpacing

      public void setLineSpacing(double lineSpacing)
    • setColor

      public void setColor(int color)