com.groupdocs.signature.domain

Class Padding

  • All Implemented Interfaces:
    Cloneable


    public class Padding
    extends Object
    implements Cloneable

    Represents padding or margin information associated with element.

    • Field Summary

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

      Constructors 
      Constructor and Description
      Padding()
      Initializes a new instance of Padding class using zero values.
      Padding(int all)
      Initializes a new instance of the Padding class using the supplied padding size for all edges.
      Padding(int left, int right, int top, int bottom)
      Initializes a new instance of the Padding class using the supplied padding sizes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Object deepClone()
      Gets a copy of this object.
      int getAll()
      Gets or sets the padding value for all the edges.
      int getBottom()
      Gets or sets the padding value for the bottom edge.
      int getHorizontal()
      Gets the combined padding for the right and left edges.
      int getLeft()
      Gets or sets the padding value for the left edge.
      int getRight()
      Gets or sets the padding value for the right edge.
      int getTop()
      Gets or sets the padding value for the top edge.
      int getVertical()
      Gets the combined padding for the top and bottom edges.
      void setAll(int value)
      Gets or sets the padding value for all the edges.
      void setBottom(int value)
      Gets or sets the padding value for the bottom edge.
      void setLeft(int value)
      Gets or sets the padding value for the left edge.
      void setRight(int value)
      Gets or sets the padding value for the right edge.
      void setTop(int value)
      Gets or sets the padding value for the top edge.
      String toString()
      Overrides conversion to string
    • Field Detail

      • Empty

        public static final Padding Empty

        Provides a Padding object with no padding.

    • Constructor Detail

      • Padding

        public Padding()

        Initializes a new instance of Padding class using zero values.

      • Padding

        public Padding(int all)

        Initializes a new instance of the Padding class using the supplied padding size for all edges.

        Parameters:
        all - The number of measure units to be used for padding for all edges.
      • Padding

        public Padding(int left,
                       int right,
                       int top,
                       int bottom)

        Initializes a new instance of the Padding class using the supplied padding sizes.

        Parameters:
        left - The left padding size.
        right - The right padding size.
        top - The top padding size.
        bottom - The bottom padding size.
    • Method Detail

      • deepClone

        public final Object deepClone()

        Gets a copy of this object.

      • getAll

        public final int getAll()

        Gets or sets the padding value for all the edges. Changing of any partial edge like left or top makes this property equal 0;

      • getBottom

        public final int getBottom()

        Gets or sets the padding value for the bottom edge.

      • getHorizontal

        public final int getHorizontal()

        Gets the combined padding for the right and left edges.

      • getLeft

        public final int getLeft()

        Gets or sets the padding value for the left edge.

      • getRight

        public final int getRight()

        Gets or sets the padding value for the right edge.

      • getTop

        public final int getTop()

        Gets or sets the padding value for the top edge.

      • getVertical

        public final int getVertical()

        Gets the combined padding for the top and bottom edges.

      • setAll

        public final void setAll(int value)

        Gets or sets the padding value for all the edges. Changing of any partial edge like left or top makes this property equal 0;

      • setBottom

        public final void setBottom(int value)

        Gets or sets the padding value for the bottom edge.

      • setLeft

        public final void setLeft(int value)

        Gets or sets the padding value for the left edge.

      • setRight

        public final void setRight(int value)

        Gets or sets the padding value for the right edge.

      • setTop

        public final void setTop(int value)

        Gets or sets the padding value for the top edge.

      • toString

        public String toString()

        Overrides conversion to string

        Overrides:
        toString in class Object
        Returns: