Package jexer.tterminal
Interface DisplayListener
-
- All Known Implementing Classes:
TTerminalWidget
,TTextPicture
public interface DisplayListener
DisplayListener is used to callback into external UI when data has come in from the remote side.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
displayChanged(boolean cursorOnly)
Function to call when the display needs to be updated (request poll).int
getDisplayHeight()
Function to call to obtain the display height.int
getDisplayWidth()
Function to call to obtain the display width.int
getScrollBottom()
Function to call to obtain the number of rows from the bottom to scroll back when sending updates via updateDisplay().void
updateDisplay(java.util.List<DisplayLine> display)
Function to call when the display has updated (push).
-
-
-
Method Detail
-
displayChanged
void displayChanged(boolean cursorOnly)
Function to call when the display needs to be updated (request poll).- Parameters:
cursorOnly
- if true, the screen has not changed but the cursor may be on a different location.
-
updateDisplay
void updateDisplay(java.util.List<DisplayLine> display)
Function to call when the display has updated (push).- Parameters:
display
- the updated display
-
getScrollBottom
int getScrollBottom()
Function to call to obtain the number of rows from the bottom to scroll back when sending updates via updateDisplay().- Returns:
- the number of rows from the bottom to scroll back
-
getDisplayWidth
int getDisplayWidth()
Function to call to obtain the display width.- Returns:
- the number of columns in the display
-
getDisplayHeight
int getDisplayHeight()
Function to call to obtain the display height.- Returns:
- the number of rows in the display
-
-