Package com.hp.lft.sdk.te
Class Position
java.lang.Object
com.hp.lft.sdk.te.Position
Represents Terminal Emulator coordinates row and column.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPosition
(int row, int column) Constructs aPosition
and initializes it to the specified column and specified row. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the total number of columns in the emulator screen.int
getRow()
Returns the total number of rows (lines) in the emulator screen.void
setPosition
(int row, int column) Sets the size of thisPosition
object to the specified row and column.toString()
Returns a string representation of the values of thisPosition
object'scolumn
androw
fields.
-
Field Details
-
column
public int columnReturns the total number of columns in the emulator screen. -
row
public int rowReturns the total number of rows (lines) in the emulator screen.
-
-
Constructor Details
-
Position
public Position(int row, int column) Constructs aPosition
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 thisPosition
object to the specified row and column. Note that ifrow
orcolumn
are larger thanInteger.MAX_VALUE
, they will be reset toInteger.MAX_VALUE
.- Parameters:
column
- the new rowCount for theSize
objectrow
- the new columnCount for theSize
object
-
toString
Returns a string representation of the values of thisPosition
object'scolumn
androw
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 benull
.
-