Class GUIPicture

All Implemented Interfaces:
GUIElement, ImageObserver, MenuContainer, Serializable

public class GUIPicture extends AbstractGUIElement
A AbstractGUIElement that displays a picture.
See Also:
  • Constructor Details

    • GUIPicture

      public GUIPicture(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @NotNull @NotNull BufferedImage image, float alpha, int preferredWidth, int preferredHeight, @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
      image - the picture to paint
      alpha - the transparency value
      preferredWidth - the preferred width of this picture
      preferredHeight - the preferred height of this picture
      guiFactory - the global GUI factory instance
      tooltipText - the text to show as the tooltip
  • Method Details