Class ScrollGUI

java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.ScrollGUI
All Implemented Interfaces:
Controllable, GUI, GUIParent
Direct Known Subclasses:
SimpleScrollItemsGUI, SimpleScrollNestedGUI, SimpleScrollVIGUI

public abstract class ScrollGUI extends BaseGUI
A scrollable GUI
See Also:
  • Field Details

    • offset

      protected int offset
  • Constructor Details

    • ScrollGUI

      public ScrollGUI(int width, int height, boolean infiniteLines, int... itemListSlots)
    • ScrollGUI

      public ScrollGUI(int width, int height, boolean infiniteLines, Structure structure)
  • Method Details

    • getLineLength

      public int getLineLength()
    • getCurrentLine

      public int getCurrentLine()
    • setCurrentLine

      public void setCurrentLine(int line)
    • canScroll

      public boolean canScroll(int lines)
    • scroll

      public void scroll(int lines)
    • update

      protected void update()
    • getMaxLineIndex

      protected abstract int getMaxLineIndex()
    • getElements

      protected abstract List<? extends SlotElement> getElements(int from, int to)