com.iver.cit.jdwglib.dwg.objects
Class DwgMText

java.lang.Object
  extended bycom.iver.cit.jdwglib.dwg.DwgObject
      extended bycom.iver.cit.jdwglib.dwg.objects.DwgMText

public class DwgMText
extends DwgObject

The DwgMText class represents a DWG MText

Author:
jmorell

Constructor Summary
DwgMText()
           
 
Method Summary
 java.lang.Object clone()
           
 int getAttachment()
           
 int getDrawingDir()
           
 double getExtHeight()
           
 double[] getExtrusion()
           
 double getExtWidth()
           
 double getHeight()
           
 double[] getInsertionPoint()
           
 double getLineSpacingFactor()
           
 int getLineSpacingStyle()
           
 int getStyleHandle()
           
 java.lang.String getText()
           
 double getWidth()
           
 double[] getXAxisDirection()
           
 void readDwgMTextV15(int[] data, int offset)
          Read a MText in the DWG format Version 15
 void setAttachment(int attachment)
           
 void setDrawingDir(int drawingDir)
           
 void setExtHeight(double extHeight)
           
 void setExtrusion(double[] extrusion)
           
 void setExtWidth(double extWidth)
           
 void setHeight(double height)
           
 void setInsertionPoint(double[] insertionPoint)
           
 void setLineSpacingFactor(double lineSpacingFactor)
           
 void setLineSpacingStyle(int lineSpacingStyle)
           
 void setStyleHandle(int styleHandle)
           
 void setText(java.lang.String text)
           
 void setWidth(double width)
           
 void setXAxisDirection(double[] axisDirection)
           
 
Methods inherited from class com.iver.cit.jdwglib.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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwgMText

public DwgMText()
Method Detail

readDwgMTextV15

public void readDwgMTextV15(int[] data,
                            int offset)
                     throws java.lang.Exception
Read a MText 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:
java.lang.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 java.lang.String getText()
Returns:
Returns the text.

setText

public void setText(java.lang.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.

clone

public java.lang.Object clone()

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.