Package com.jsevy.jdxf
Class DXFText
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFGraphicalEntity
-
- com.jsevy.jdxf.DXFText
-
- All Implemented Interfaces:
DXFObject
public class DXFText extends DXFGraphicalEntity
Class representing DXF text, located at a specified position and having specified style (font, size).- Author:
- jsevy
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFText(java.lang.String text, RealPoint basePoint, double capHeight, double rotationAngle, double obliqueAngle, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.DXFText(java.lang.String text, RealPoint basePoint, double capHeight, double rotationAngle, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.DXFText(java.lang.String text, RealPoint basePoint, double capHeight, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the text object.-
Methods inherited from class com.jsevy.jdxf.DXFGraphicalEntity
getDXFHatchInfo
-
Methods inherited from class com.jsevy.jdxf.DXFEntity
setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFText
public DXFText(java.lang.String text, RealPoint basePoint, double capHeight, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textcapHeight
- The height of the font (generally the height of the capital H in the font)style
- Text style (font)graphics
- The graphics object specifying parameters for this entity (color, thickness)
-
DXFText
public DXFText(java.lang.String text, RealPoint basePoint, double capHeight, double rotationAngle, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textcapHeight
- The height of the font (generally the height of the capital H in the font)rotationAngle
- Angle by which the text baseline is rotated from the horizontalstyle
- Text style (font)graphics
- The graphics object specifying parameters for this entity (color, thickness)
-
DXFText
public DXFText(java.lang.String text, RealPoint basePoint, double capHeight, double rotationAngle, double obliqueAngle, DXFStyle style, DXFGraphics graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textcapHeight
- The height of the font (generally the height of the capital H in the font)rotationAngle
- Angle by which the text baseline is rotated from the horizontalobliqueAngle
- Angle by which the text is slanted from the baselinestyle
- Text style (font)graphics
- The graphics object specifying parameters for this entity (color, thickness)
-
-
Method Detail
-
toDXFString
public java.lang.String toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the text object.- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFGraphicalEntity
-
-