Class Size

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

public class Size extends Object
Represents the rows and columns of the Terminal Emulator Screen.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Returns the total number of columns in the emulator screen.
    int
    Returns the total number of rows (lines) in the emulator screen.
  • Constructor Summary

    Constructors
    Constructor
    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
    Description
    int
    Returns the total number of columns in the emulator screen.
    int
    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.
    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 Details

    • 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 Details

    • 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 Details

    • 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 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 Object
      Returns:
      a string representation of this Size object