com.groupdocs.signature.domain.stamps

Class Corners



  • public class Corners
    extends Object

    Represents corners of a square graphical object.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Corners Empty
      Provides a Corners object with no data.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Corners()
      Initializes a new instance of Corners class using zero values.
      Corners(double all)
      Initializes a new instance of the Corners class using the supplied value for all corners.
      Corners(double topLeft, double topRight, double bottomLeft, double bottomRight)
      Initializes a new instance of the Corners class using the supplied values.
    • Field Detail

      • Empty

        public static final Corners Empty

        Provides a Corners object with no data.

    • Constructor Detail

      • Corners

        public Corners()

        Initializes a new instance of Corners class using zero values.

      • Corners

        public Corners(double all)

        Initializes a new instance of the Corners class using the supplied value for all corners.

        Parameters:
        all - The value to be used for padding for all corners.
      • Corners

        public Corners(double topLeft,
                       double topRight,
                       double bottomLeft,
                       double bottomRight)

        Initializes a new instance of the Corners class using the supplied values.

        Parameters:
        topLeft - Top left corner value.
        topRight - Top right corner value.
        bottomLeft - Bottom left corner value.
        bottomRight - Bottom right corner value.
    • Method Detail

      • deepClone

        public final Object deepClone()

        Gets a copy of this object.

      • equals

        public boolean equals(Object obj)

        Override equals method

        Overrides:
        equals in class Object
        Parameters:
        obj - Instance to compare with.
        Returns:
        Returns true if properties of objects are equal.
      • getAll

        public final double getAll()

        Gets or sets the value for all corners. Changing of any partial corner like top right makes this property equal 0;

      • getBottomLeft

        public final double getBottomLeft()

        Gets or sets bottom left corner value.

      • getBottomRight

        public final double getBottomRight()

        Gets or sets bottom right corner value.

      • getTopLeft

        public final double getTopLeft()

        Gets or sets top left corner value.

      • getTopRight

        public final double getTopRight()

        Gets or sets top right corner value.

      • hashCode

        public int hashCode()

        Overrides obtaining unique hash code value

        Overrides:
        hashCode in class Object
        Returns:
      • setAll

        public final void setAll(double value)

        Gets or sets the value for all corners. Changing of any partial corner like top right makes this property equal 0;

      • setBottomLeft

        public final void setBottomLeft(double value)

        Gets or sets bottom left corner value.

      • setBottomRight

        public final void setBottomRight(double value)

        Gets or sets bottom right corner value.

      • setTopLeft

        public final void setTopLeft(double value)

        Gets or sets top left corner value.

      • setTopRight

        public final void setTopRight(double value)

        Gets or sets top right corner value.

      • toString

        public String toString()

        Overrides conversion to string.

        Overrides:
        toString in class Object
        Returns: