Class Area

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

public class Area extends Object
Represents Terminal Emulator coordinates Top, Left, Bottom, Right.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Bottom position of the rectangle.
    int
    Left position of the rectangle.
    int
    Right position of the rectangle.
    int
    Top position of the rectangle.
  • Constructor Summary

    Constructors
    Constructor
    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
    Description
    int
    Returns Bottom position of the rectangle.
    int
    Returns Left position of the rectangle.
    int
    Returns Right position of the rectangle.
    int
    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.
    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 Details

    • 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.
  • Constructor Details

    • 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 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 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 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 Object
      Returns:
      a string representation of this Area object