Class LinesBuffer
java.lang.Object
org.springframework.shell.test.jediterm.terminal.model.LinesBuffer
Holds styled characters lines
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLines
(List<TerminalLine> lines) void
addNewLine
(TextStyle style, CharBuffer characters) void
clearAll()
void
void
clearLines
(int startRow, int endRow, TerminalLine.TextEntry filler) void
void
deleteCharacters
(int x, int y, int count, TextStyle style) deleteLines
(int y, int count, int lastLine, TerminalLine.TextEntry filler) getLine
(int row) int
getLines()
getLineText
(int row) void
insertBlankCharacters
(int x, int y, int count, int maxLen, TextStyle style) void
insertLines
(int y, int count, int lastLine, TerminalLine.TextEntry filler) void
moveBottomLinesTo
(int count, LinesBuffer buffer) void
moveTopLinesTo
(int count, LinesBuffer buffer) void
processLines
(int yStart, int yCount, StyledTextConsumer consumer) void
processLines
(int firstLine, int count, StyledTextConsumer consumer, int startRow) int
removeBottomEmptyLines
(int ind, int maxCount) void
removeTopLines
(int count) void
writeString
(int x, int y, CharBuffer str, TextStyle style)
-
Field Details
-
DEFAULT_MAX_LINES_COUNT
public static final int DEFAULT_MAX_LINES_COUNT- See Also:
-
-
Constructor Details
-
LinesBuffer
public LinesBuffer() -
LinesBuffer
public LinesBuffer(int bufferMaxLinesCount)
-
-
Method Details
-
getLines
-
addNewLine
-
getLineCount
public int getLineCount() -
removeTopLines
public void removeTopLines(int count) -
getLineText
-
insertLines
-
deleteLines
-
writeString
-
clearLines
-
clearAll
public void clearAll() -
deleteCharacters
-
insertBlankCharacters
-
clearArea
-
processLines
-
processLines
-
moveTopLinesTo
-
addLines
-
getLine
-
moveBottomLinesTo
-
removeBottomEmptyLines
public int removeBottomEmptyLines(int ind, int maxCount) -
clearTypeAheadPredictions
public void clearTypeAheadPredictions()
-