Class GUIScrollBar

All Implemented Interfaces:
GUIElement, ScrollableListener, ImageObserver, MenuContainer, Serializable, EventListener

public class GUIScrollBar extends ActivatableGUIElement implements ScrollableListener
A scroll bar gui element.
See Also:
  • Constructor Details

    • GUIScrollBar

      public GUIScrollBar(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, boolean proportionalSlider, @NotNull @NotNull GUIScrollable2 scrollable, @NotNull @NotNull Color colorBackground, @NotNull @NotNull Color colorForeground, @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
      proportionalSlider - if set, make the slider size reflect the visible area; if unset, display the slider as a square
      scrollable - the target element to scroll
      colorBackground - the background color of the slider
      colorForeground - the foreground color of the slider
      guiFactory - the global GUI factory instance
  • Method Details