Class GUIOneLineLabel

All Implemented Interfaces:
GUIElement, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
GUIDialogTitle, GUILabelStats, GUILabelStats2, GUINewcharLabel

public class GUIOneLineLabel extends GUILabel
A AbstractLabel that renders the text as a plain string.
See Also:
  • Constructor Details

    • GUIOneLineLabel

      public GUIOneLineLabel(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @Nullable @Nullable BufferedImage picture, @NotNull @NotNull Font textFont, @NotNull @NotNull Color textColor, @NotNull @NotNull Color textHighlightColor, @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 window renderer 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 text color when not highlighted
      textHighlightColor - the text color when highlighted
      backgroundColor - the background color
      alignment - the text alignment
      text - the label text
      guiFactory - the global GUI factory instance
  • Method Details