Class DwgText
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgText
-
public class DwgText extends DwgObject
The DwgText class represents a DWG Text- 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 DwgText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Point2DgetAlignmentPoint()intgetDataFlag()doublegetElevation()double[]getExtrusion()intgetGeneration()intgetHalign()doublegetHeight()Point2DgetInsertionPoint()doublegetObliqueAngle()doublegetRotationAngle()StringgetText()doublegetThickness()intgetValign()doublegetWidthFactor()voidreadDwgTextV15(int[] data, int offset)Read a Text in the DWG format Version 15voidsetAlignmentPoint(Point2D alignmentPoint)voidsetDataFlag(int dataFlag)voidsetElevation(double elevation)voidsetExtrusion(double[] extrusion)voidsetGeneration(int generation)voidsetHalign(int halign)voidsetHeight(double height)voidsetInsertionPoint(Point2D insertionPoint)voidsetObliqueAngle(double obliqueAngle)voidsetRotationAngle(double rotationAngle)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
-
readDwgTextV15
public void readDwgTextV15(int[] data, int offset) throws ExceptionRead a Text 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.
-
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.
-
-