com.groupdocs.annotation.models

Class Rectangle

  • java.lang.Object
    • com.aspose.ms.System.ValueType<T>
      • com.aspose.ms.lang.Struct<Rectangle>
        • com.groupdocs.annotation.models.Rectangle


  • public class Rectangle
    extends com.aspose.ms.lang.Struct<Rectangle>

    Represents rectangle.

    • Constructor Detail

      • Rectangle

        public Rectangle()
      • Rectangle

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

        Initializes a new instance of the Rectangle struct.

        Parameters:
        x - The x.
        y - The y.
        width - The width.
        height - The height.
    • Method Detail

      • Clone

        public Rectangle Clone()
        Specified by:
        Clone in class com.aspose.ms.System.ValueType<Rectangle>
      • CloneTo

        public void CloneTo(Rectangle that)
        Specified by:
        CloneTo in class com.aspose.ms.System.ValueType<Rectangle>
      • equals

        public boolean equals(Object obj)

        Determines whether the specified rectangle is equal to the current rectangle.

        Overrides:
        equals in class Object
        Parameters:
        obj - The rectangle to compare with the current rectangle.
        Returns:
        if the specified rectangle is equal to the current rectangle; otherwise, .
      • getHeight

        public final float getHeight()

        Gets or sets the height.

        Value: The height.
        Returns:
      • getWidth

        public final float getWidth()

        Gets or sets the width.

        Value: The width.
        Returns:
      • getX

        public final float getX()

        Gets or sets the x.

        Value: The x.
        Returns:
      • getY

        public final float getY()

        Gets or sets the y.

        Value: The y.
        Returns:
      • hashCode

        public int hashCode()

        Serves as the default hash function.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current rectangle.
      • op_Equality

        public static boolean op_Equality(Rectangle left,
                          Rectangle right)

        Compares two Rectangle objects. The result specifies whether the values of the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height properties of the two Rectangle objects are equal.

        Parameters:
        left - A Rectangle to compare.
        right - A Rectangle to compare.
        Returns:
        true if the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height values of left and right are equal; otherwise, false.
      • op_Inequality

        public static boolean op_Inequality(Rectangle left,
                            Rectangle right)

        Compares two Rectangle objects. The result specifies whether the values of the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height properties of the two Rectangle objects are not equal.

        Parameters:
        left - A Rectangle to compare.
        right - A Rectangle to compare.
        Returns:
        true if the Rectangle.X, Rectangle.Y, Rectangle.Width and Rectangle.Height values of left and right are not equal; otherwise, false.
      • setHeight

        public final void setHeight(float value)

        Gets or sets the height.

        Value: The height.
        Parameters:
        value -
      • setWidth

        public final void setWidth(float value)

        Gets or sets the width.

        Value: The width.
        Parameters:
        value -
      • setX

        public final void setX(float value)

        Gets or sets the x.

        Value: The x.
        Parameters:
        value -
      • setY

        public final void setY(float value)

        Gets or sets the y.

        Value: The y.
        Parameters:
        value -