Package com.hp.lft.sdk.te
Class Size
java.lang.Object
com.hp.lft.sdk.te.Size
Represents the rows and columns of the Terminal Emulator Screen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Returns the total number of columns in the emulator screen.int
Returns the total number of rows (lines) in the emulator screen. -
Constructor Summary
ConstructorsConstructorDescriptionSize
(int rowCount, int columnCount) Constructs aSize
and initializes it to the specified columnCount and specified rowCount. -
Method Summary
Modifier and TypeMethodDescriptionint
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 thisSize
object to the specified rowCount and columnCount.toString()
Returns a string representation of the values of thisSize
object'scolumnCount
androwCount
fields.
-
Field Details
-
columnCount
public int columnCountReturns the total number of columns in the emulator screen. -
rowCount
public int rowCountReturns the total number of rows (lines) in the emulator screen.
-
-
Constructor Details
-
Size
public Size(int rowCount, int columnCount) Constructs aSize
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 thisSize
object to the specified rowCount and columnCount. Note that ifrowCount
orcolumnCount
are larger thanInteger.MAX_VALUE
, they will be reset toInteger.MAX_VALUE
.- Parameters:
columnCount
- the new rowCount for theSize
objectrowCount
- the new columnCount for theSize
object
-
toString
Returns a string representation of the values of thisSize
object'scolumnCount
androwCount
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
.
-