com.hp.lft.sdk.te

Class Position

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


  • public class Position
    extends java.lang.Object
    Represents Terminal Emulator coordinates row and column.
    • Field Summary

      Modifier and TypeField and Description
      intcolumn
      Returns the total number of columns in the emulator screen.
      introw
      Returns the total number of rows (lines) in the emulator screen.
    • Constructor Summary

      Constructor and Description
      Position(int row, int column)
      Constructs a Position and initializes it to the specified column and specified row.
    • Method Summary

      Modifier and TypeMethod and Description
      intgetColumn()
      Returns the total number of columns in the emulator screen.
      intgetRow()
      Returns the total number of rows (lines) in the emulator screen.
      voidsetPosition(int row, int column)
      Sets the size of this Position object to the specified row and column.
      java.lang.StringtoString()
      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 Detail

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

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

      • 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 java.lang.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 java.lang.Object
        Returns:
        a string representation of this Position object