Class VirtualTerminalTextGraphics

    • Constructor Detail

    • Method Detail

      • setCharacter

        public TextGraphics setCharacter​(int columnIndex,
                                         int rowIndex,
                                         TextCharacter textCharacter)
        Description copied from interface: TextGraphics
        Sets the character at the current position to the specified value, without using the current colors and modifiers of this TextGraphics.
        Parameters:
        columnIndex - column of the location to set the character
        rowIndex - row of the location to set the character
        textCharacter - Character data to set at the current position
        Returns:
        Itself
      • getCharacter

        public TextCharacter getCharacter​(TerminalPosition position)
        Description copied from interface: TextGraphics
        Returns the character at the specific position in the terminal. May return null if the TextGraphics implementation doesn't support it or doesn't know what the character is.
        Specified by:
        getCharacter in interface TextGraphics
        Overrides:
        getCharacter in class AbstractTextGraphics
        Parameters:
        position - Position to return the character for
        Returns:
        The text character at the specified position or null if not available
      • getCharacter

        public TextCharacter getCharacter​(int column,
                                          int row)
        Description copied from interface: TextGraphics
        Returns the character at the specific position in the terminal. May return null if the TextGraphics implementation doesn't support it or doesn't know what the character is.
        Parameters:
        column - Column to return the character for
        row - Row to return the character for
        Returns:
        The text character at the specified position or null if not available
      • getSize

        public TerminalSize getSize()
        Description copied from interface: TextGraphics
        Returns the size of the area that this text graphic can write to. Any attempts of placing characters outside of this area will be silently ignored.
        Returns:
        Size of the writable area that this TextGraphics can write too