|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectdxfExporter.DXFExport
Base class for export to DXF. It is a container for DXF entities which can
be loaded from the user data. When the Data are prepared by one of this
ways, it can be saved to stream or file in DXF format.
Important:
please fill in correctly Data field of corresponding object before
adding a new entity. See subclasses DXFLine, DXFEllipse etc. of
a superclass DXFFigure.
Field Summary | |
java.lang.String |
AutoCADVer
Version of AutoCAD DXF which used in this drawing. |
java.util.ArrayList |
Current
List of the strings of a this DXF file. |
int |
DrawingUnits
Drawing units for AutoCAD DesignCenter blocks: 0= Unitless, 1= Inches, 2= Feet, 3= Miles, 4= Millimeters, 5= Centimeters, 6= Meters, 7= Kilometers, 8= Microinches, 9= Mils, 10= Yards, 11= Angstroms, 12= Nanometers, 13= Microns, 14= Decimeters, 15= Decameters, 16= Hectometers, 17= Gigameters, 18= Astronomical units, 19= Light years, 20= Parsecs. |
Constructor Summary | |
DXFExport()
|
Method Summary | |
void |
add3DFace(DXFData Dt)
Adds the 3DFACE entity. |
void |
add3DPoint(int Code,
DXFPoint Pt)
Adds the DXF point. |
void |
addArc(DXFData Dt)
Adds the ARC entity. |
void |
addBezier(DXFData Dt)
Adds the Bezier curve as SPLINE entity. |
void |
addCircle(DXFData Dt)
Adds the CIRCLE entity. |
void |
addColor(int Color)
Adds the DXF 8 bit color. |
void |
addEllipse(DXFData Dt)
Adds the ELLIPSE entity. |
void |
addFloat(int Code,
double Value)
Adds the float value. |
void |
addHatch(DXFData Dt)
Adds the HATCH entity. |
void |
addInt(int Code,
int Value)
Adds the integer value. |
void |
addLine(DXFData Dt)
Adds the LINE entity. |
void |
addLType(java.lang.String Name,
float[] Parts)
Adds a new linetype (LTYPE entity from array of ticks) to LTYPE table. |
void |
addMText(DXFData Dt)
Adds the MTEXT entity. |
void |
addName(DXFFigure Figure,
java.lang.String Name,
java.lang.String SubName)
Adds the name of a entity. |
void |
addPixel(DXFData Dt)
Adds the POINT entity. |
void |
addPoint(int Code,
DXFPoint Pt)
Adds the X,Y-coordinates of DXF point. |
void |
addPolyline(DXFData Dt)
Adds the LWPOLYLINE entity. |
void |
addRectangle(DXFData Dt)
Adds a rectangle as LWPOLYLINE entity with 4 points. |
void |
addString(int Code,
java.lang.String Str)
Adds the string value. |
void |
addText(DXFData Dt)
Adds the TEXT entity. |
void |
addThickness(DXFData Dt)
Adds the thickness value. |
void |
addVertex(DXFPoint Pt)
Adds the vertex as X,Y-coordinates of DXF point, with code is equal 10 (for a first added coordinate value). |
void |
beginPoly(DXFFigure Figure)
Adds the first DXF strings for LWPOLYLINE-type entities. |
static DXFData |
doArcParams(float Top,
float Left,
float Right,
float Bottom,
float StartPtX,
float StartPtY,
float EndPtX,
float EndPtY)
|
static DXFData |
doEllipseParams(float Top,
float Left,
float Right,
float Bottom)
|
protected void |
doLimits(DXFPoint Pt)
|
void |
finalize()
|
void |
saveToFile(java.lang.String FilePath)
Saves current DXFExport object as a specified DXF file. |
void |
setCurrentLayer(DXFLayer Lr)
Setting current layer |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int DrawingUnits
public java.lang.String AutoCADVer
public java.util.ArrayList Current
Constructor Detail |
public DXFExport()
Method Detail |
public void addName(DXFFigure Figure, java.lang.String Name, java.lang.String SubName)
Figure
- DXFFigure entity.Name
- The name of a DXF entity.SubName
- The subname of a DXF entity.public void addInt(int Code, int Value)
Code
- The code of a integer value.Value
- The integer value.public void addFloat(int Code, double Value)
Code
- The code of a float value.Value
- The float value.public void addString(int Code, java.lang.String Str)
Code
- The code of a string value.Str
- The string value.public void addPoint(int Code, DXFPoint Pt)
Code
- The code for a first added coordinate value.Pt
- The DXFPoint value.public void add3DPoint(int Code, DXFPoint Pt)
Code
- The code for a first added coordinate value.Pt
- The DXFPoint value.public void addVertex(DXFPoint Pt)
Pt
- The DXFPoint value.public void addColor(int Color)
Color
- The color value.public void addThickness(DXFData Dt)
Dt
- The structure DXFData with Thickness value.public void beginPoly(DXFFigure Figure)
Figure
- DXFFigure entity.public void addPixel(DXFData Dt)
Dt
- The specially filled structure DXFData for POINT entity.DXFPixel
public void addLine(DXFData Dt)
Dt
- The specially filled structure DXFData for LINE entity.DXFLine
public void addRectangle(DXFData Dt)
Dt
- The specially filled structure DXFData for rectangle
as LWPOLYLINE entity.DXFRectangle
public void addPolyline(DXFData Dt)
Dt
- The specially filled structure DXFData for LWPOLYLINE
entity.DXFPolyline
public void addCircle(DXFData Dt)
Dt
- The specially filled structure DXFData for CIRCLE entity.DXFEllipse
public void addEllipse(DXFData Dt)
Dt
- The specially filled structure DXFData for ELLIPSE entity.DXFEllipse
public void addArc(DXFData Dt)
Dt
- The specially filled structure DXFData for ARC entity.DXFArc
public void addText(DXFData Dt)
Dt
- The specially filled structure DXFData for TEXT entity.DXFText
public void addMText(DXFData Dt)
Dt
- The specially filled structure DXFData for MTEXT entity.DXFMText
public void addHatch(DXFData Dt)
Dt
- The specially filled structure DXFData for HATCH entity.DXFHatch
public void addBezier(DXFData Dt)
Dt
- The specially filled structure DXFData for SPLINE entity.DXFBezier
public void add3DFace(DXFData Dt)
Dt
- The specially filled structure DXFData for 3DFACE entity.DXF3DFace
public void addLType(java.lang.String Name, float[] Parts)
Name
- The name of a new line type.Parts
- The array of ticks for this linetype.public static DXFData doArcParams(float Top, float Left, float Right, float Bottom, float StartPtX, float StartPtY, float EndPtX, float EndPtY)
public static DXFData doEllipseParams(float Top, float Left, float Right, float Bottom)
protected void doLimits(DXFPoint Pt)
public void setCurrentLayer(DXFLayer Lr)
Lr
- Layer object (created before).public void saveToFile(java.lang.String FilePath)
FilePath
- The path to saved file (or name of a file).public void finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |