Class DwgAttdef
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgAttdef
-
public class DwgAttdef extends DwgObject
The DwgAttdef class represents a DWG Attdef- Author:
- jmorell
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
color, extendedData, graphicData, graphicsFlag, handle, layerHandle, layerHandleCode, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, sizeInBits, subEntityHandle, type, version, xDicObjHandle
-
-
Constructor Summary
Constructors Constructor Description DwgAttdef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Point2DgetAlignmentPoint()intgetDataFlag()doublegetElevation()double[]getExtrusion()intgetFieldLength()intgetFlags()intgetGeneration()intgetHalign()doublegetHeight()Point2DgetInsertionPoint()doublegetObliqueAngle()StringgetPrompt()doublegetRotationAngle()intgetStyleHandle()StringgetTag()StringgetText()doublegetThickness()intgetValign()doublegetWidthFactor()voidreadDwgAttdefV15(int[] data, int offset)Read an Attdef in the DWG format Version 15voidsetAlignmentPoint(Point2D alignmentPoint)voidsetDataFlag(int dataFlag)voidsetElevation(double elevation)voidsetExtrusion(double[] extrusion)voidsetFieldLength(int fieldLength)voidsetFlags(int flags)voidsetGeneration(int generation)voidsetHalign(int halign)voidsetHeight(double height)voidsetInsertionPoint(Point2D insertionPoint)voidsetObliqueAngle(double obliqueAngle)voidsetPrompt(String prompt)voidsetRotationAngle(double rotationAngle)voidsetStyleHandle(int styleHandle)voidsetTag(String tag)voidsetText(String text)voidsetThickness(double thickness)voidsetValign(int valign)voidsetWidthFactor(double widthFactor)-
Methods inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle
-
-
-
-
Method Detail
-
readDwgAttdefV15
public void readDwgAttdefV15(int[] data, int offset) throws ExceptionRead an Attdef in the DWG format Version 15- Parameters:
data- Array of unsigned bytes obtained from the DWG binary fileoffset- 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.
-
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.
-
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.
-
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion- The extrusion 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.
-
getInsertionPoint
public Point2D getInsertionPoint()
- Returns:
- Returns the insertionPoint.
-
setInsertionPoint
public void setInsertionPoint(Point2D insertionPoint)
- Parameters:
insertionPoint- The insertionPoint 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.
-
-