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 aPositionand initializes it to the specified column and specified row. -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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 thisPositionobject to the specified row and column.toString()Returns a string representation of the values of thisPositionobject'scolumnandrowfields.
-
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 aPositionand 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 thisPositionobject to the specified row and column. Note that ifroworcolumnare larger thanInteger.MAX_VALUE, they will be reset toInteger.MAX_VALUE.- Parameters:
column- the new rowCount for theSizeobjectrow- the new columnCount for theSizeobject
-
toString
Returns a string representation of the values of thisPositionobject'scolumnandrowfields. 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.
-