TerminalScrollController.Null
public interface TerminalScrollController
SwingTerminal
when it needs to fetch the scroll position and also used whenever the backlog changes to that
some view class, like a scrollbar for example, can update its view accordingly.Modifier and Type | Interface | Description |
---|---|---|
static class |
TerminalScrollController.Null |
Implementation of
TerminalScrollController that does nothing |
Modifier and Type | Method | Description |
---|---|---|
int |
getScrollingOffset() |
Called by the SwingTerminal to know the 'offset' into the backlog.
|
void |
updateModel(int totalSize,
int screenSize) |
Called by the SwingTerminal when the terminal has changed or more lines are entered into the terminal
|
void updateModel(int totalSize, int screenSize)
totalSize
- Total number of lines in the backlog currentlyscreenSize
- Number of lines covered by the terminal window at its current sizeint getScrollingOffset()
Copyright © 2020. All rights reserved.