Interface TerminalScrollController

    • Method Detail

      • updateModel

        void updateModel​(int totalSize,
                         int screenSize)
        Called by the SwingTerminal when the terminal has changed or more lines are entered into the terminal
        Parameters:
        totalSize - Total number of lines in the backlog currently
        screenSize - Number of lines covered by the terminal window at its current size
      • getScrollingOffset

        int getScrollingOffset()
        Called by the SwingTerminal to know the 'offset' into the backlog. Returning 0 here will always draw the latest lines; if you return 5, it will draw from five lines into the backlog and skip the 5 most recent lines.
        Returns:
        According to this scroll controller, how far back into the backlog are we?