fileconvert
Class WriteDXF

java.lang.Object
  |
  +--fileconvert.WriteDXF

public class WriteDXF
extends java.lang.Object

This class writes a DXF file


Constructor Summary
WriteDXF()
          Creates new WriteDXF
WriteDXF(Info3d info, java.lang.String fname)
          Creates a new Write DXF and Writes the file
 
Method Summary
 void setInfo3d(Info3d info)
          sets 3d info
 boolean write(Info3d info, java.lang.String fname)
          Writes the DXF File
 boolean write(java.lang.String fname)
          Writes a DXF file(info must be set before writing)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDXF

public WriteDXF()
Creates new WriteDXF

WriteDXF

public WriteDXF(Info3d info,
                java.lang.String fname)
         throws java.io.IOException
Creates a new Write DXF and Writes the file
Parameters:
info - the 3d info to be written
fname - the name of the file to be written
Throws:
java.io.IOException - throws IOException
Method Detail

setInfo3d

public void setInfo3d(Info3d info)
sets 3d info
Parameters:
info - The variable containing all the 3d info

write

public boolean write(Info3d info,
                     java.lang.String fname)
              throws java.io.IOException
Writes the DXF File
Parameters:
info - The 3d info to be written
fname - The path of the file
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException

write

public boolean write(java.lang.String fname)
              throws java.io.IOException
Writes a DXF file(info must be set before writing)
Parameters:
fname - The path of the file to be written
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException