Class GUIPictureStat

All Implemented Interfaces:
GUIElement, ImageObserver, MenuContainer, Serializable

public class GUIPictureStat extends AbstractGUIElement
A AbstractGUIElement that displays a picture depending on the value of a stat.
See Also:
  • Constructor Details

    • GUIPictureStat

      public GUIPictureStat(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, int stat, @Nullable @Nullable BufferedImage imageInactive, @Nullable @Nullable BufferedImage imageActive, int preferredWidth, int preferredHeight, @NotNull @NotNull Stats stats, @NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull String tooltipText)
      Creates a new instance.
      Parameters:
      tooltipManager - the tooltip manager to update
      elementListener - the element listener to notify
      name - the name of this element
      stat - the stat to display
      imageInactive - the picture to paint when the stat is 0
      imageActive - the picture to paint when the stat is not 0
      preferredWidth - the preferred width of this picture
      preferredHeight - the preferred height of this picture
      stats - the stats instance to use
      guiFactory - the global GUI factory instance
      tooltipText - the text to show as the tooltip
  • Method Details