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

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