Class Position

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

public class Position extends Object
Represents Terminal Emulator coordinates row and column.
  • 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
    Position(int row, int column)
    Constructs a Position and initializes it to the specified column and specified row.
  • 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
    setPosition(int row, int column)
    Sets the size of this Position object to the specified row and column.
    Returns a string representation of the values of this Position object's column and row fields.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • column

      public int column
      Returns the total number of columns in the emulator screen.
    • row

      public int row
      Returns the total number of rows (lines) in the emulator screen.
  • Constructor Details

    • Position

      public Position(int row, int column)
      Constructs a Position and initializes it to the specified column and specified row.
      Parameters:
      row - The value of the rows in the emulator screen.
      column - The values of the columns in the emulator screen.
  • Method Details

    • getColumn

      public int getColumn()
      Returns the total number of columns in the emulator screen.
      Returns:
      the total number of columns in the emulator screen.
    • getRow

      public int getRow()
      Returns the total number of rows (lines) in the emulator screen.
      Returns:
      the total number of rows (lines) in the emulator screen.
    • setPosition

      public void setPosition(int row, int column)
      Sets the size of this Position object to the specified row and column. Note that if row or column are larger than Integer.MAX_VALUE, they will be reset to Integer.MAX_VALUE.
      Parameters:
      column - the new rowCount for the Size object
      row - the new columnCount for the Size object
    • toString

      public String toString()
      Returns a string representation of the values of this Position object's column and row 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 Position object