Open topic with navigation

com.hp.lft.sdk.te

## Class Size

- java.lang.Object
- - com.hp.lft.sdk.te.Size

-     public class Size
      extends java.lang.Object

  Represents the rows and columns of the Terminal Emulator Screen.

- - ### Field Summary

    Modifier and Type | Field and Description
    --- | ---
    `int` | `columnCount` Returns the total number of columns in the emulator screen.
    `int` | `rowCount` Returns the total number of rows (lines) in the emulator screen.

  - ### Constructor Summary

    Constructor and Description
    `Size(int rowCount, int columnCount)` Constructs a `Size` and initializes it to the specified columnCount and specified rowCount.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getColumnCount()` Returns the total number of columns in the emulator screen.
    `int` | `getRowCount()` Returns the total number of rows (lines) in the emulator screen.
    `void` | `setSize(int rowCount, int columnCount)` Sets the size of this `Size` object to the specified rowCount and columnCount.
    `java.lang.String` | `toString()` Returns a string representation of the values of this `Size` object's `columnCount` and `rowCount` fields.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### columnCount

          public int columnCount

      Returns the total number of columns in the emulator screen.

    - #### rowCount

          public int rowCount

      Returns the total number of rows (lines) in the emulator screen.

  - ### Constructor Detail

    - #### Size

          public Size(int rowCount,
                      int columnCount)

      Constructs a `Size` and initializes it to the specified columnCount and specified rowCount.
      Parameters:
        `rowCount` - The value of the rows in the emulator screen.
        `columnCount` - The values of the columns in the emulator screen.

  - ### Method Detail

    - #### getColumnCount

          public int getColumnCount()

      Returns the total number of columns in the emulator screen.
      Returns:
        the total number of columns in the emulator screen.

    - #### getRowCount

          public int getRowCount()

      Returns the total number of rows (lines) in the emulator screen.
      Returns:
        the total number of rows (lines) in the emulator screen.

    - #### setSize

          public void setSize(int rowCount,
                              int columnCount)

      Sets the size of this `Size` object to the specified rowCount and columnCount. Note that if `rowCount` or `columnCount` are larger than `Integer.MAX_VALUE`, they will be reset to `Integer.MAX_VALUE`.
      Parameters:
        `columnCount` - the new rowCount for the `Size` object
        `rowCount` - the new columnCount for the `Size` object

    - #### toString

          public java.lang.String toString()

      Returns a string representation of the values of this `Size` object's `columnCount` and `rowCount` fields. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be `null`.
      Overrides:
        `toString` in class `java.lang.Object`
      Returns:
        a string representation of this `Size` object