com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class Rectangle



  • public final class Rectangle
    extends Object

    Provides a rectangle.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Rectangle EMPTY
      An empty rectangle.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Rectangle(double x, double y, double width, double height)
      Initializes a new instance of the Rectangle class.
    • Field Detail

      • EMPTY

        public static final Rectangle EMPTY

        An empty rectangle.

    • Constructor Detail

      • Rectangle

        public Rectangle(double x,
                 double y,
                 double width,
                 double height)

        Initializes a new instance of the Rectangle class.

        Parameters:
        x - X-coordinate of the upper-left corner.
        y - Y-coordinate of the upper-left corner.
        width - Width of the rectangle.
        height - Height of the rectangle.
    • Method Detail

      • getLeft

        public double getLeft()

        Gets a X-coordinate of the upper-left corner.

        Returns:
        A double value that represents X-coordinate of the upper-left corner.
      • getTop

        public double getTop()

        Gets a X-coordinate of the upper-left corner.

        Returns:
        A double value that represents Y-coordinate of the upper-left corner.
      • getRight

        public double getRight()

        Gets a X-coordinate of the lower-right corner.

        Returns:
        A double value that represents X-coordinate of the lower-right corner.
      • getBottom

        public double getBottom()

        Gets a Y-coordinate of the lower-right corner.

        Returns:
        A double value that represents Y-coordinate of the lower-right corner.
      • getWidth

        public double getWidth()

        Gets a width of the rectangle.

        Returns:
        A double value that represents a width of the rectangle.
      • getHeight

        public double getHeight()

        Gets a height of the rectangle.

        Returns:
        A double value that represents a height of the rectangle.