Package com.hp.lft.sdk.te
Class Area
java.lang.Object
com.hp.lft.sdk.te.Area
Represents Terminal Emulator coordinates Top, Left, Bottom, Right.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArea
(int top, int left, int bottom, int right) Constructs anArea
and initializes it to the specified top, left, bottom, and right properties.Constructs anArea
and initializes it to the specified top, left, bottom, and right properties. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns Bottom position of the rectangle.int
getLeft()
Returns Left position of the rectangle.int
getRight()
Returns Right position of the rectangle.int
getTop()
Returns Top position of the rectangle.void
setArea
(int top, int left, int bottom, int right) Sets the size of thisArea
object to the specified top, left, bottom, and right properties.toString()
Returns a string representation of the values of thisArea
object'stop
,left
,bottom
, andright
fields.
-
Field Details
-
top
public int topTop position of the rectangle. -
left
public int leftLeft position of the rectangle. -
bottom
public int bottomBottom position of the rectangle. -
right
public int rightRight position of the rectangle.
-
-
Constructor Details
-
Area
public Area(int top, int left, int bottom, int right) Constructs anArea
and initializes it to the specified top, left, bottom, and right properties.- Parameters:
top
- the top edge of this Area structure.left
- the left edge of this Area structure.bottom
- the bottom edge of this Area structure.right
- the right edge of this Area structure.
-
Area
Constructs anArea
and initializes it to the specified top, left, bottom, and right properties.- Parameters:
topLeft
- assigns values to Top and Left fields.bottomRight
- assigns values to Bottom and Right fields.
-
-
Method Details
-
getTop
public int getTop()Returns Top position of the rectangle.- Returns:
- top position of the rectangle.
-
getLeft
public int getLeft()Returns Left position of the rectangle.- Returns:
- left position of the rectangle.
-
getBottom
public int getBottom()Returns Bottom position of the rectangle.- Returns:
- bottom position of the rectangle.
-
getRight
public int getRight()Returns Right position of the rectangle.- Returns:
- right position of the rectangle.
-
setArea
public void setArea(int top, int left, int bottom, int right) Sets the size of thisArea
object to the specified top, left, bottom, and right properties. Note that iftop
,left
,bottom
, orright
are larger thanInteger.MAX_VALUE
, they will be reset toInteger.MAX_VALUE
.- Parameters:
top
- the top edge of this Area structure.left
- the left edge of this Area structure.bottom
- the bottom edge of this Area structure.right
- the right edge of this Area structure.
-
toString
Returns a string representation of the values of thisArea
object'stop
,left
,bottom
, andright
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
.
-