Class DwgMText

java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgMText
All Implemented Interfaces:
Cloneable, IDwg2FMap, IDwg3DTestable, IDwgExtrusionable

public class DwgMText extends DwgObject implements IDwgExtrusionable, IDwg3DTestable, IDwg2FMap
The DwgMText class represents a DWG MText
Author:
jmorell, azabala
  • Constructor Details

    • DwgMText

      public DwgMText(int index)
  • Method Details

    • 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 DwgHandleReference getStyleHandle()
      Returns:
      Returns the styleHandle.
    • setStyleHandle

      public void setStyleHandle(DwgHandleReference 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.
    • applyExtrussion

      public void applyExtrussion()
      Specified by:
      applyExtrussion in interface IDwgExtrusionable
    • has3DData

      public boolean has3DData()
      Specified by:
      has3DData in interface IDwg3DTestable
    • getZ

      public double getZ()
      Specified by:
      getZ in interface IDwg3DTestable
    • toFMapGeometry

      public org.gvsig.fmap.geom.Geometry toFMapGeometry(boolean is3DFile) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Specified by:
      toFMapGeometry in interface IDwg2FMap
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • toFMapString

      public String toFMapString(boolean is3DFile)
      Specified by:
      toFMapString in interface IDwg2FMap
    • toString

      public String toString()
      Specified by:
      toString in interface IDwg2FMap
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class DwgObject
    • fill

      protected void fill(DwgObject obj)
      Overrides:
      fill in class DwgObject
    • getGeometryType

      public int getGeometryType()
      Specified by:
      getGeometryType in interface IDwg2FMap