Packages

 

com.aspose.cad.xmp.types.complex.dimensions

Class Dimensions

  • All Implemented Interfaces:
    IXmpType


    public final class Dimensions
    extends ComplexTypeBase

    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 float getWidth()

        Gets or sets the width.

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

        public void setWidth(float value)

        Gets or sets the width.

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

        public float getHeight()

        Gets or sets the height.

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

        public void setHeight(float value)

        Gets or sets the height.

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

        public String getUnits()

        Gets or sets units.


         For example: inch, mm, pixel, pica, point etc.
         

        Returns:
        The units.
      • setUnits

        public void setUnits(String value)

        Gets or sets units.


         For example: inch, mm, pixel, pica, point etc.
         

        Parameters:
        value - The units.