com.groupdocs.parser.data

Class Rectangle



  • public class Rectangle
    extends Object
    Represents a rectangular area.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Rectangle(double left, double top, double right, double bottom)
      Initializes a new instance of the Rectangle class.
      Rectangle(Point position, Size size)
      Initializes a new instance of the Rectangle class.
    • Constructor Detail

      • Rectangle

        public Rectangle(double left,
                 double top,
                 double right,
                 double bottom)
        Initializes a new instance of the Rectangle class.
        Parameters:
        left - The x-coordinate of the left edge of the rectangular area.
        top - The y-coordinate of the top edge of the rectangular area.
        right - The x-coordinate of the right edge of the rectangular area.
        bottom - The y-coordinate of the bottom edge of the rectangular area.
      • Rectangle

        public Rectangle(Point position,
                 Size size)
        Initializes a new instance of the Rectangle class.
        Parameters:
        position - The coordinates of the upper-left corner of the rectangular area.
        size - The size of the rectangular area.
    • Method Detail

      • getLeft

        public double getLeft()
        Gets the x-coordinate of the left edge of the rectangular area.
        Returns:
        A double value that represents the x-coordinate of the left edge of the rectangular area.
      • getTop

        public double getTop()
        Gets the y-coordinate of the top edge of the rectangular area.
        Returns:
        A double value that represents the y-coordinate of the top edge of the rectangular area.
      • getRight

        public double getRight()
        Gets the x-coordinate of the right egde of the rectangular area.
        Returns:
        A double value that represents the x-coordinate of the right edge of the rectangular area.
      • getBottom

        public double getBottom()
        Gets the y-coordinate of the bottom edge of the rectangular area.
        Returns:
        A double value that represents the y-coordinate of the bottom edge of the rectangular area.
      • getPosition

        public Point getPosition()
        Gets the coordinates of the upper-left corner of the rectangular area.
        Returns:
        An instance of Point class that represents the coordinates of the upper-left corner of the rectangular area.
      • getSize

        public Size getSize()
        Gets the size.
        Returns:
        An instance of Size class that represents the size of the rectangular area.