Packages

 

com.aspose.cad.fileformats.cad.cadobjects

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.
      • CadSize

        public CadSize(int attributeWidth,
               int attributeHeight)

        Initializes a new instance of the CadSize class.

        Parameters:
        attributeWidth - Width of the attribute.
        attributeHeight - Height of the attribute.
    • Method Detail

      • getWidth

        public double getWidth()

        Gets or sets the Width.

      • setWidth

        public void setWidth(double value)

        Gets or sets the Width.

      • getHeight

        public double getHeight()

        Gets or sets the height.

      • setHeight

        public void setHeight(double value)

        Gets or sets the height.

      • getParamWidth

        public CadDoubleParameter getParamWidth()

        Gets or sets the width parameter.

      • setParamWidth

        public void setParamWidth(CadDoubleParameter value)

        Gets or sets the width parameter.

      • getParamHeight

        public CadDoubleParameter getParamHeight()

        Gets or sets the height parameter.

      • setParamHeight

        public void setParamHeight(CadDoubleParameter value)

        Gets or sets the height parameter.

      • truncate

        public Dimension truncate()

        Gets the point.

        Returns:
        The System.Drawing.Size.
      • 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

        public void addToCadParams(String subClass,
                          CadBase baseObject)

        The add to Cad parameters.

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

        public void removeFromCadParams(String subClass,
                               CadBase baseObject)

        Removes from cad parameters.

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