com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class Dimensions

  • All Implemented Interfaces:
    IXmpType


    public final class Dimensions
    extends XmpComplexType

    Containing dimensions for a drawn object.

    • Constructor Detail

      • Dimensions

        public Dimensions()

        Initializes a new instance of the Dimensions class.

      • Dimensions

        public Dimensions(float width,
                  float height)

        Initializes a new instance of the Dimensions class.

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

      • getWidth

        public final float getWidth()

        Gets or sets width.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Width could not be less than zero. Value: The width.
      • setWidth

        public final void setWidth(float value)

        Gets or sets width.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Width could not be less than zero. Value: The width.
      • getHeight

        public final float getHeight()

        Gets or sets height.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Height could not be less than zero. Value: The height.
      • setHeight

        public final void setHeight(float value)

        Gets or sets height.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Height could not be less than zero. Value: The height.
      • getUnits

        public final String getUnits()

        Gets units.

        Returns:
        Units: inch, mm, pixel etc.
      • setUnits

        public final void setUnits(String value)

        Sets units.

        Parameters:
        value - Units: inch, mm, pixel etc.