java.lang.Object
org.springframework.shell.test.jediterm.terminal.model.LinesBuffer

public class LinesBuffer extends Object
Holds styled characters lines
  • 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

      public String getLines()
    • addNewLine

      public void addNewLine(TextStyle style, CharBuffer characters)
    • getLineCount

      public int getLineCount()
    • removeTopLines

      public void removeTopLines(int count)
    • getLineText

      public String getLineText(int row)
    • insertLines

      public void insertLines(int y, int count, int lastLine, TerminalLine.TextEntry filler)
    • deleteLines

      public LinesBuffer deleteLines(int y, int count, int lastLine, TerminalLine.TextEntry filler)
    • writeString

      public void writeString(int x, int y, CharBuffer str, TextStyle style)
    • clearLines

      public void clearLines(int startRow, int endRow, TerminalLine.TextEntry filler)
    • clearAll

      public void clearAll()
    • deleteCharacters

      public void deleteCharacters(int x, int y, int count, TextStyle style)
    • insertBlankCharacters

      public void insertBlankCharacters(int x, int y, int count, int maxLen, TextStyle style)
    • clearArea

      public void clearArea(int leftX, int topY, int rightX, int bottomY, TextStyle style)
    • processLines

      public void processLines(int yStart, int yCount, StyledTextConsumer consumer)
    • processLines

      public void processLines(int firstLine, int count, StyledTextConsumer consumer, int startRow)
    • moveTopLinesTo

      public void moveTopLinesTo(int count, LinesBuffer buffer)
    • addLines

      public void addLines(List<TerminalLine> lines)
    • getLine

      public TerminalLine getLine(int row)
    • moveBottomLinesTo

      public void moveBottomLinesTo(int count, LinesBuffer buffer)
    • removeBottomEmptyLines

      public int removeBottomEmptyLines(int ind, int maxCount)
    • clearTypeAheadPredictions

      public void clearTypeAheadPredictions()