com.groupdocs.comparison.result

Class Rectangle

  • All Implemented Interfaces:
    Cloneable


    public final class Rectangle
    extends Object
    implements Cloneable

    Rectangle model

    • Constructor Detail

      • Rectangle

        public Rectangle()
        Instantiates a new Rectangle.
      • Rectangle

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

        Creates a new instance of Rectangle

        Parameters:
        x - X position of rectangle
        y - Y position of Rectangle
        width - Width of Rectangle
        height - Height of Rectangle
    • Method Detail

      • getHeight

        public final double getHeight()

        Height

        Returns:
        the height
      • getWidth

        public final double getWidth()

        Width

        Returns:
        the width
      • getX

        public final double getX()

        X coordinate

        Returns:
        the x
      • getY

        public final double getY()

        Y coordinate

        Returns:
        the y
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setHeight

        public final void setHeight(double value)

        Height

        Parameters:
        value - the value
      • setWidth

        public final void setWidth(double value)

        Width

        Parameters:
        value - the value
      • setX

        public final void setX(double value)

        X coordinate

        Parameters:
        value - the value
      • setY

        public final void setY(double value)

        Y coordinate

        Parameters:
        value - the value