Class DwgMText


  • public class DwgMText
    extends DwgObject
    The DwgMText class represents a DWG MText
    Author:
    jmorell
    • Constructor Detail

      • DwgMText

        public DwgMText()
    • Method Detail

      • readDwgMTextV15

        public void readDwgMTextV15​(int[] data,
                                    int offset)
                             throws Exception
        Read a MText in the DWG format Version 15
        Parameters:
        data - Array of unsigned bytes obtained from the DWG binary file
        offset - The current bit offset where the value begins
        Throws:
        Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
      • getHeight

        public double getHeight()
        Returns:
        Returns the height.
      • setHeight

        public void setHeight​(double height)
        Parameters:
        height - The height to set.
      • getInsertionPoint

        public double[] getInsertionPoint()
        Returns:
        Returns the insertionPoint.
      • setInsertionPoint

        public void setInsertionPoint​(double[] insertionPoint)
        Parameters:
        insertionPoint - The insertionPoint to set.
      • getText

        public String getText()
        Returns:
        Returns the text.
      • setText

        public void setText​(String text)
        Parameters:
        text - The text to set.
      • getWidth

        public double getWidth()
        Returns:
        Returns the width.
      • setWidth

        public void setWidth​(double width)
        Parameters:
        width - The width to set.
      • getExtrusion

        public double[] getExtrusion()
        Returns:
        Returns the extrusion.
      • getAttachment

        public int getAttachment()
        Returns:
        Returns the attachment.
      • setAttachment

        public void setAttachment​(int attachment)
        Parameters:
        attachment - The attachment to set.
      • getDrawingDir

        public int getDrawingDir()
        Returns:
        Returns the drawingDir.
      • setDrawingDir

        public void setDrawingDir​(int drawingDir)
        Parameters:
        drawingDir - The drawingDir to set.
      • getExtHeight

        public double getExtHeight()
        Returns:
        Returns the extHeight.
      • setExtHeight

        public void setExtHeight​(double extHeight)
        Parameters:
        extHeight - The extHeight to set.
      • getExtWidth

        public double getExtWidth()
        Returns:
        Returns the extWidth.
      • setExtWidth

        public void setExtWidth​(double extWidth)
        Parameters:
        extWidth - The extWidth to set.
      • getLineSpacingFactor

        public double getLineSpacingFactor()
        Returns:
        Returns the lineSpacingFactor.
      • setLineSpacingFactor

        public void setLineSpacingFactor​(double lineSpacingFactor)
        Parameters:
        lineSpacingFactor - The lineSpacingFactor to set.
      • getLineSpacingStyle

        public int getLineSpacingStyle()
        Returns:
        Returns the lineSpacingStyle.
      • setLineSpacingStyle

        public void setLineSpacingStyle​(int lineSpacingStyle)
        Parameters:
        lineSpacingStyle - The lineSpacingStyle to set.
      • getStyleHandle

        public int getStyleHandle()
        Returns:
        Returns the styleHandle.
      • setStyleHandle

        public void setStyleHandle​(int styleHandle)
        Parameters:
        styleHandle - The styleHandle to set.
      • getXAxisDirection

        public double[] getXAxisDirection()
        Returns:
        Returns the xAxisDirection.
      • setXAxisDirection

        public void setXAxisDirection​(double[] axisDirection)
        Parameters:
        axisDirection - The xAxisDirection to set.
      • setExtrusion

        public void setExtrusion​(double[] extrusion)
        Parameters:
        extrusion - The extrusion to set.