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 TypeFieldDescriptionintReturns the total number of columns in the emulator screen.intReturns the total number of rows (lines) in the emulator screen. -
Constructor Summary
ConstructorsConstructorDescriptionSize(int rowCount, int columnCount) Constructs aSizeand initializes it to the specified columnCount and specified rowCount. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the total number of columns in the emulator screen.intReturns the total number of rows (lines) in the emulator screen.voidsetSize(int rowCount, int columnCount) Sets the size of thisSizeobject to the specified rowCount and columnCount.toString()Returns a string representation of the values of thisSizeobject'scolumnCountandrowCountfields.
-
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 aSizeand 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 thisSizeobject to the specified rowCount and columnCount. Note that ifrowCountorcolumnCountare larger thanInteger.MAX_VALUE, they will be reset toInteger.MAX_VALUE.- Parameters:
columnCount- the new rowCount for theSizeobjectrowCount- the new columnCount for theSizeobject
-
toString
Returns a string representation of the values of thisSizeobject'scolumnCountandrowCountfields. 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.
-