Class Ansi.NoAnsi

  • All Implemented Interfaces:
    java.lang.Appendable
    Enclosing class:
    Ansi

    private static class Ansi.NoAnsi
    extends Ansi
    • Constructor Detail

      • NoAnsi

        public NoAnsi()
      • NoAnsi

        public NoAnsi​(int size)
      • NoAnsi

        public NoAnsi​(java.lang.StringBuilder builder)
    • Method Detail

      • cursor

        public Ansi cursor​(int row,
                           int column)
        Description copied from class: Ansi
        Moves the cursor to row n, column m. The values are 1-based. Any values less than 1 are mapped to 1.
        Overrides:
        cursor in class Ansi
        Parameters:
        row - row (1-based) from top
        column - column (1 based) from left
        Returns:
        this Ansi instance
      • cursorToColumn

        public Ansi cursorToColumn​(int x)
        Description copied from class: Ansi
        Moves the cursor to column n. The parameter n is 1-based. If n is less than 1 it is moved to the first column.
        Overrides:
        cursorToColumn in class Ansi
        Parameters:
        x - the index (1-based) of the column to move to
        Returns:
        this Ansi instance
      • cursorUp

        public Ansi cursorUp​(int y)
        Description copied from class: Ansi
        Moves the cursor up. If the parameter y is negative it moves the cursor down.
        Overrides:
        cursorUp in class Ansi
        Parameters:
        y - the number of lines to move up
        Returns:
        this Ansi instance
      • cursorRight

        public Ansi cursorRight​(int x)
        Description copied from class: Ansi
        Moves the cursor right. If the parameter x is negative it moves the cursor left.
        Overrides:
        cursorRight in class Ansi
        Parameters:
        x - the number of characters to move right
        Returns:
        this Ansi instance
      • cursorDown

        public Ansi cursorDown​(int y)
        Description copied from class: Ansi
        Moves the cursor down. If the parameter y is negative it moves the cursor up.
        Overrides:
        cursorDown in class Ansi
        Parameters:
        y - the number of lines to move down
        Returns:
        this Ansi instance
      • cursorLeft

        public Ansi cursorLeft​(int x)
        Description copied from class: Ansi
        Moves the cursor left. If the parameter x is negative it moves the cursor right.
        Overrides:
        cursorLeft in class Ansi
        Parameters:
        x - the number of characters to move left
        Returns:
        this Ansi instance
      • cursorDownLine

        public Ansi cursorDownLine()
        Description copied from class: Ansi
        Moves the cursor to the beginning of the line below.
        Overrides:
        cursorDownLine in class Ansi
        Returns:
        this Ansi instance
      • cursorDownLine

        public Ansi cursorDownLine​(int n)
        Description copied from class: Ansi
        Moves the cursor to the beginning of the n-th line below. If the parameter n is negative it moves the cursor to the beginning of the n-th line above.
        Overrides:
        cursorDownLine in class Ansi
        Parameters:
        n - the number of lines to move the cursor
        Returns:
        this Ansi instance
      • cursorUpLine

        public Ansi cursorUpLine()
        Description copied from class: Ansi
        Moves the cursor to the beginning of the line above.
        Overrides:
        cursorUpLine in class Ansi
        Returns:
        this Ansi instance
      • cursorUpLine

        public Ansi cursorUpLine​(int n)
        Description copied from class: Ansi
        Moves the cursor to the beginning of the n-th line above. If the parameter n is negative it moves the cursor to the beginning of the n-th line below.
        Overrides:
        cursorUpLine in class Ansi
        Parameters:
        n - the number of lines to move the cursor
        Returns:
        this Ansi instance
      • scrollUp

        public Ansi scrollUp​(int rows)
        Overrides:
        scrollUp in class Ansi