Package org.gvsig.dwg.lib.objects
Class DwgMText
java.lang.Object
org.gvsig.dwg.lib.DwgObject
org.gvsig.dwg.lib.objects.DwgMText
- All Implemented Interfaces:
Cloneable,IDwg2FMap,IDwg3DTestable,IDwgExtrusionable
The DwgMText class represents a DWG MText
- Author:
- jmorell, azabala
-
Field Summary
Fields inherited from class org.gvsig.dwg.lib.DwgObject
address, avanzarFlag, color, extendedData, graphicData, graphicsFlag, handle, index, layerHandle, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, plotStyleHandle, sizeInBits, subEntityHandle, type, version, xDicObjFlag, xDicObjHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()protected voidintintdoubledouble[]doubleintdoubledouble[]doubleintgetText()doublegetWidth()double[]doublegetZ()booleanvoidsetAttachment(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(DwgHandleReference styleHandle) voidvoidsetWidth(double width) voidsetXAxisDirection(double[] axisDirection) org.gvsig.fmap.geom.GeometrytoFMapGeometry(boolean is3DFile) toFMapString(boolean is3DFile) toString()Methods inherited from class org.gvsig.dwg.lib.DwgObject
addReactorHandle, getAddress, getAvanzar, getColor, getExtendedData, getGeometrySubType, getGraphicData, getHandle, getIndex, getLayerHandle, getLinetypeFlags, getLineTypeHandle, getMode, getNextHandle, getNumReactors, getPlotstyleFlags, getPreviousHandle, getReactorsHandles, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, hasLayerHandle, hasLineTypeHandle, hasNextHandle, hasPlotStyleHandle, hasPreviousHandle, hasReactorsHandles, hasSubEntityHandle, hasXDicObjHandle, inserta, insertar, isGraphicsFlag, isLyrByLineType, isNoLinks, isXDicObjFlag, reactorsHandlesQuantity, setAddress, setAvanzar, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLinetypeFlags, setLineTypeHandle, setLyrByLineType, setMode, setNextHandle, setNoLinks, setNumReactors, setPlotstyleFlags, setPlotStyleHandle, setPreviousHandle, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjFlag, setXDicObjHandleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.dwg.lib.IDwg2FMap
getGeometrySubType
-
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
- Returns:
- Returns the text.
-
setText
- 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
- Returns:
- Returns the styleHandle.
-
setStyleHandle
- 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:
applyExtrussionin interfaceIDwgExtrusionable
-
has3DData
public boolean has3DData()- Specified by:
has3DDatain interfaceIDwg3DTestable
-
getZ
public double getZ()- Specified by:
getZin interfaceIDwg3DTestable
-
toFMapGeometry
public org.gvsig.fmap.geom.Geometry toFMapGeometry(boolean is3DFile) throws org.gvsig.fmap.geom.exception.CreateGeometryException - Specified by:
toFMapGeometryin interfaceIDwg2FMap- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryException
-
toFMapString
- Specified by:
toFMapStringin interfaceIDwg2FMap
-
toString
-
clone
-
fill
-
getGeometryType
public int getGeometryType()- Specified by:
getGeometryTypein interfaceIDwg2FMap
-