Class StyledTextConsumerAdapter

java.lang.Object
org.springframework.shell.test.jediterm.terminal.StyledTextConsumerAdapter
All Implemented Interfaces:
StyledTextConsumer

public class StyledTextConsumerAdapter extends Object implements StyledTextConsumer
  • Constructor Details

    • StyledTextConsumerAdapter

      public StyledTextConsumerAdapter()
  • Method Details

    • consume

      public void consume(int x, int y, TextStyle style, CharBuffer characters, int startRow)
      Specified by:
      consume in interface StyledTextConsumer
      Parameters:
      x - indicates starting column of the characters
      y - indicates row of the characters
      style - style of characters
      characters - text characters
      startRow - number of the first row. It can be different for different buffers, e.g. backBuffer starts from 0, textBuffer and scrollBuffer from -count
    • consumeNul

      public void consumeNul(int x, int y, int nulIndex, TextStyle style, CharBuffer characters, int startRow)
      Specified by:
      consumeNul in interface StyledTextConsumer
    • consumeQueue

      public void consumeQueue(int x, int y, int nulIndex, int startRow)
      Specified by:
      consumeQueue in interface StyledTextConsumer