Packages

 

com.aspose.cad.fileformats.cad.cadobjects

Classes

com.aspose.cad.fileformats.cad.cadobjects

Class CadSize



  • public class CadSize
    extends Object

    The Cad size

    • Constructor Detail

      • CadSize

        public CadSize(double valueWidth,
                       double valueHeight)

        Initializes a new instance of the CadSize class.

        Parameters:
        valueWidth - Width of the value.
        valueHeight - Height of the value.
    • Method Detail

      • fromAttributes

        public static CadSize fromAttributes(int attributeWidth,
                                             int attributeHeight)

        Initializes a new instance of the CadSize class.

        Parameters:
        attributeWidth - Width of the attribute.
        attributeHeight - Height of the attribute.
        Returns:
        A new instance of the CadSize object.
      • getWidth

        public double getWidth()

        Gets the width.

        Returns:
        The width.
      • setWidth

        public void setWidth(double value)

        Sets the width.

        Parameters:
        value - The width.
      • getHeight

        public double getHeight()

        Gets the height.

        Returns:
        The height.
      • setHeight

        public void setHeight(double value)

        Sets the height.

        Parameters:
        value - The height.
      • getParamWidth_internalized

        public CadDoubleParameter getParamWidth_internalized()

        Gets the width parameter.

        Returns:
        The width parameter.
      • setParamWidth_internalized

        public void setParamWidth_internalized(CadDoubleParameter value)

        Sets the width parameter.

        Parameters:
        value - The width parameter.
      • getParamHeight_internalized

        public CadDoubleParameter getParamHeight_internalized()

        Gets the height parameter.

        Returns:
        The height parameter.
      • setParamHeight_internalized

        public void setParamHeight_internalized(CadDoubleParameter value)

        Sets the height parameter.

        Parameters:
        value - the height parameter.
      • truncate

        public Dimension truncate()

        Gets the point.

        Returns:
        The System.Drawing.Size.
      • truncate_internalized

        public com.aspose.ms.System.Drawing.Size truncate_internalized()
      • 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.
      • addToCadParams_internalized

        public void addToCadParams_internalized(String subClass,
                                                CadBase baseObject)

        The add to Cad parameters.

        Parameters:
        subClass - The sub class.
        baseObject - The base object.
      • removeFromCadParams_internalized

        public void removeFromCadParams_internalized(String subClass,
                                                     CadBase baseObject)

        Removes from cad parameters.

        Parameters:
        subClass - The sub class.
        baseObject - The base object.