Module com.googlecode.lanterna
Class TerminalScrollController.Null
- java.lang.Object
-
- com.googlecode.lanterna.terminal.swing.TerminalScrollController.Null
-
- All Implemented Interfaces:
TerminalScrollController
- Enclosing interface:
- TerminalScrollController
public static final class TerminalScrollController.Null extends java.lang.Object implements TerminalScrollController
Implementation ofTerminalScrollControllerthat does nothing
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.googlecode.lanterna.terminal.swing.TerminalScrollController
TerminalScrollController.Null
-
-
Constructor Summary
Constructors Constructor Description Null()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetScrollingOffset()Called by the SwingTerminal to know the 'offset' into the backlog.voidupdateModel(int totalSize, int screenSize)Called by the SwingTerminal when the terminal has changed or more lines are entered into the terminal
-
-
-
Method Detail
-
updateModel
public void updateModel(int totalSize, int screenSize)Description copied from interface:TerminalScrollControllerCalled by the SwingTerminal when the terminal has changed or more lines are entered into the terminal- Specified by:
updateModelin interfaceTerminalScrollController- Parameters:
totalSize- Total number of lines in the backlog currentlyscreenSize- Number of lines covered by the terminal window at its current size
-
getScrollingOffset
public int getScrollingOffset()
Description copied from interface:TerminalScrollControllerCalled 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.- Specified by:
getScrollingOffsetin interfaceTerminalScrollController- Returns:
- According to this scroll controller, how far back into the backlog are we?
-
-