Class DwgText


  • public class DwgText
    extends DwgObject
    The DwgText class represents a DWG Text
    Author:
    jmorell
    • Constructor Detail

      • DwgText

        public DwgText()
    • Method Detail

      • readDwgTextV15

        public void readDwgTextV15​(int[] data,
                                   int offset)
                            throws Exception
        Read a Text 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.
      • getDataFlag

        public int getDataFlag()
        Returns:
        Returns the dataFlag.
      • setDataFlag

        public void setDataFlag​(int dataFlag)
        Parameters:
        dataFlag - The dataFlag to set.
      • getHeight

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

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

        public Point2D getInsertionPoint()
        Returns:
        Returns the insertionPoint.
      • setInsertionPoint

        public void setInsertionPoint​(Point2D insertionPoint)
        Parameters:
        insertionPoint - The insertionPoint to set.
      • getRotationAngle

        public double getRotationAngle()
        Returns:
        Returns the rotationAngle.
      • setRotationAngle

        public void setRotationAngle​(double rotationAngle)
        Parameters:
        rotationAngle - The rotationAngle to set.
      • getText

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

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

        public double getElevation()
        Returns:
        Returns the elevation.
      • setElevation

        public void setElevation​(double elevation)
        Parameters:
        elevation - The elevation to set.
      • getThickness

        public double getThickness()
        Returns:
        Returns the thickness.
      • setThickness

        public void setThickness​(double thickness)
        Parameters:
        thickness - The thickness to set.
      • getExtrusion

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

        public Point2D getAlignmentPoint()
        Returns:
        Returns the alignmentPoint.
      • setAlignmentPoint

        public void setAlignmentPoint​(Point2D alignmentPoint)
        Parameters:
        alignmentPoint - The alignmentPoint to set.
      • getGeneration

        public int getGeneration()
        Returns:
        Returns the generation.
      • setGeneration

        public void setGeneration​(int generation)
        Parameters:
        generation - The generation to set.
      • getHalign

        public int getHalign()
        Returns:
        Returns the halign.
      • setHalign

        public void setHalign​(int halign)
        Parameters:
        halign - The halign to set.
      • getObliqueAngle

        public double getObliqueAngle()
        Returns:
        Returns the obliqueAngle.
      • setObliqueAngle

        public void setObliqueAngle​(double obliqueAngle)
        Parameters:
        obliqueAngle - The obliqueAngle to set.
      • getValign

        public int getValign()
        Returns:
        Returns the valign.
      • setValign

        public void setValign​(int valign)
        Parameters:
        valign - The valign to set.
      • getWidthFactor

        public double getWidthFactor()
        Returns:
        Returns the widthFactor.
      • setWidthFactor

        public void setWidthFactor​(double widthFactor)
        Parameters:
        widthFactor - The widthFactor to set.
      • setExtrusion

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