Class DwgAttrib


  • public class DwgAttrib
    extends DwgObject
    The DwgAttrib class represents a DWG Attrib
    Author:
    jmorell
    • Constructor Detail

      • DwgAttrib

        public DwgAttrib()
    • Method Detail

      • readDwgAttribV15

        public void readDwgAttribV15​(int[] data,
                                     int offset)
                              throws Exception
        Read an Attrib 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.
      • getElevation

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

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

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

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

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

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

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

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

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

        public int getFieldLength()
        Returns:
        Returns the fieldLength.
      • setFieldLength

        public void setFieldLength​(int fieldLength)
        Parameters:
        fieldLength - The fieldLength to set.
      • getFlags

        public int getFlags()
        Returns:
        Returns the flags.
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - The flags 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.
      • getHeight

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

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

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

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

        public String getPrompt()
        Returns:
        Returns the prompt.
      • setPrompt

        public void setPrompt​(String prompt)
        Parameters:
        prompt - The prompt to set.
      • getRotationAngle

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

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

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

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

        public String getTag()
        Returns:
        Returns the tag.
      • setTag

        public void setTag​(String tag)
        Parameters:
        tag - The tag to set.
      • getText

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

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

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

        public void setThickness​(double thickness)
        Parameters:
        thickness - The thickness 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.