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 TypeField and Description
      intbottom
      Bottom position of the rectangle.
      intleft
      Left position of the rectangle.
      intright
      Right position of the rectangle.
      inttop
      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 TypeMethod and Description
      intgetBottom()
      Returns Bottom position of the rectangle.
      intgetLeft()
      Returns Left position of the rectangle.
      intgetRight()
      Returns Right position of the rectangle.
      intgetTop()
      Returns Top position of the rectangle.
      voidsetArea(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.StringtoString()
      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