com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class Rectangle

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


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

    A set of four integers that represent the location and size of a rectangle.

    • Constructor Detail

      • Rectangle

        public Rectangle()
    • Method Detail

      • getEmpty

        public static Rectangle getEmpty()

        Gets the empty rectangle.

        Returns:
        The empty rectangle.
      • getX

        public final int getX()

        Gets the x.

        Returns:
        The x.
      • getY

        public final int getY()

        Gets the y.

        Returns:
        The y.
      • getWidth

        public final int getWidth()

        Gets the width.

        Returns:
        The width.
      • getHeight

        public final int getHeight()

        Gets the height.

        Returns:
        The height.
      • getLeft

        public final int getLeft()

        Gets the x-coordinate of the left edge of the rectangle.

        Returns:
        The x-coordinate of the left edge of the rectangle.
      • getTop

        public final int getTop()

        Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.

        Returns:
        The y-coordinate that is the sum of the Y and Height property values of the rectangle.
      • getRight

        public final int getRight()

        Gets the x-coordinate that is the sum of X and Width property values of the rectangle.

        Returns:
        The x-coordinate that is the sum of X and Width property values of the rectangle.
      • getBottom

        public final int getBottom()

        Gets the y-coordinate that is the sum of the Y and Height property values of the rectangle.

        Returns:
        The y-coordinate that is the sum of the Y and Height property values of the rectangle.
      • isEmpty

        public final boolean isEmpty()

        Gets a value indicating whether this instance is empty.

        Returns:
        true if this instance is empty; otherwise, false.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.
      • CloneTo

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

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