Class GUIMultiLineLabel

All Implemented Interfaces:
GUIElement, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
GUILabelFailure, GUILabelMessage, GUILabelQuery

public class GUIMultiLineLabel extends GUILabel
A AbstractLabel that renders the text as a list of plain strings. The lines are separated by newline characters.
See Also:
  • Constructor Details

    • GUIMultiLineLabel

      public GUIMultiLineLabel(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @Nullable @Nullable BufferedImage picture, @NotNull @NotNull Font textFont, @NotNull @NotNull Color textColor, @Nullable @Nullable Color backgroundColor, @NotNull @NotNull Alignment alignment, @NotNull @NotNull String text, @NotNull @NotNull GuiFactory guiFactory)
      Creates a new instance.
      Parameters:
      tooltipManager - the tooltip manager to update
      elementListener - the element listener to notify
      name - the name of this element
      picture - the background image; null for no background
      textFont - the font for rendering the label text
      textColor - the font color
      backgroundColor - the background color
      alignment - the text alignment
      text - the label text
      guiFactory - the global GUI factory instance
  • Method Details