Class DwgMText
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgMText
-
public class DwgMText extends DwgObject
The DwgMText class represents a DWG MText- 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 DwgMText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()intgetAttachment()intgetDrawingDir()doublegetExtHeight()double[]getExtrusion()doublegetExtWidth()doublegetHeight()double[]getInsertionPoint()doublegetLineSpacingFactor()intgetLineSpacingStyle()intgetStyleHandle()StringgetText()doublegetWidth()double[]getXAxisDirection()voidreadDwgMTextV15(int[] data, int offset)Read a MText in the DWG format Version 15voidsetAttachment(int attachment)voidsetDrawingDir(int drawingDir)voidsetExtHeight(double extHeight)voidsetExtrusion(double[] extrusion)voidsetExtWidth(double extWidth)voidsetHeight(double height)voidsetInsertionPoint(double[] insertionPoint)voidsetLineSpacingFactor(double lineSpacingFactor)voidsetLineSpacingStyle(int lineSpacingStyle)voidsetStyleHandle(int styleHandle)voidsetText(String text)voidsetWidth(double width)voidsetXAxisDirection(double[] axisDirection)-
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
-
readDwgMTextV15
public void readDwgMTextV15(int[] data, int offset) throws ExceptionRead a MText 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.
-
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.
-
-