Share this page

com.hp.lft.sdk.te

## Class Area

- java.lang.Object
- - com.hp.lft.sdk.te.Area

-     public class Area
      extends java.lang.Object

  Represents Terminal Emulator coordinates Top, Left, Bottom, Right.

- - ### Field Summary

    Modifier and Type | Field and Description
    --- | ---
    `int` | `bottom` Bottom position of the rectangle.
    `int` | `left` Left position of the rectangle.
    `int` | `right` Right position of the rectangle.
    `int` | `top` Top position of the rectangle.

  - ### Constructor Summary

    Constructor and Description
    `Area(int top, int left, int bottom, int right)` Constructs an `Area` and initializes it to the specified top, left, bottom, and right properties.
    `Area(Position topLeft, Position bottomRight)` Constructs an `Area` and initializes it to the specified top, left, bottom, and right properties.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getBottom()` 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 this `Area` object to the specified top, left, bottom, and right properties.
    `java.lang.String` | `toString()` Returns a string representation of the values of this `Area` object's `top`, `left`, `bottom`, and `right` fields.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### top

          public int top

      Top position of the rectangle.

    - #### left

          public int left

      Left position of the rectangle.

    - #### bottom

          public int bottom

      Bottom position of the rectangle.

    - #### right

          public int right

      Right position of the rectangle.

  - ### Constructor Detail

    - #### Area

          public Area(int top,
                      int left,
                      int bottom,
                      int right)

      Constructs an `Area` 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

          public Area(Position topLeft,
                      Position bottomRight)

      Constructs an `Area` 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 Detail

    - #### 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 this `Area` object to the specified top, left, bottom, and right properties. Note that if `top`, `left`, `bottom`, or `right` are larger than `Integer.MAX_VALUE`, they will be reset to `Integer.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

          public java.lang.String toString()

      Returns a string representation of the values of this `Area` object's `top`, `left`, `bottom`, and `right` 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 be `null`.
      Overrides:
        `toString` in class `java.lang.Object`
      Returns:
        a string representation of this `Area` object

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: