Package com.jsevy.jdxf
Class DXFText
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFText
-
-
Constructor Summary
Constructors Constructor Description DXFText(java.lang.String text, RealPoint basePoint, double rotationAngle, double obliqueAngle, DXFStyle style, java.awt.Graphics2D graphics)
Create a text object at the specified position.DXFText(java.lang.String text, RealPoint basePoint, double rotationAngle, DXFStyle style, java.awt.Graphics2D graphics)
Create a text object at the specified position.DXFText(java.lang.String text, RealPoint basePoint, DXFStyle style, java.awt.Graphics2D 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.DXFEntity
getDXFHatchInfo, getDXFLineWeight, setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFText
public DXFText(java.lang.String text, RealPoint basePoint, DXFStyle style, java.awt.Graphics2D graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textstyle
- Text style (font)graphics
- The graphics object specifying parameters for this entity (color, thickness)
-
DXFText
public DXFText(java.lang.String text, RealPoint basePoint, double rotationAngle, DXFStyle style, java.awt.Graphics2D graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textrotationAngle
- 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 rotationAngle, double obliqueAngle, DXFStyle style, java.awt.Graphics2D graphics)
Create a text object at the specified position.- Parameters:
text
- Text stringbasePoint
- Location of the base point of the textrotationAngle
- 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 classDXFEntity
-
-