Module org.jline

Class Size


  • public class Size
    extends Object
    • Constructor Detail

      • Size

        public Size()
      • Size

        public Size​(int columns,
                    int rows)
    • Method Detail

      • getColumns

        public int getColumns()
      • setColumns

        public void setColumns​(int columns)
      • getRows

        public int getRows()
      • setRows

        public void setRows​(int rows)
      • cursorPos

        public int cursorPos​(int row,
                             int col)
        A cursor position combines a row number with a column position.

        Note each row has col+1 different column positions, including the right margin.

        Parameters:
        col - the new column
        row - the new row
        Returns:
        the cursor position
      • copy

        public void copy​(Size size)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object