Class DxfWrite

Class DxfWrite

Variables

 o Line Types
  public final byte CONTINUOUS
  public final byte DASHED
  public final byte HIDDEN
  public final byte DOT

Methods

dxfOpen
  public void dxfOpen(String Filename) throws IOException
Open the Dxf file "Filename" for writing

dxfClose
  public void dxfClose() throws IOException
Close the Dxf file
finalize
  protected void finalize() throws Throwable
Cleanup when disposed
Overrides:
finalize in class Object
setLineType
  public void setLineType(int type)
set the line type, one of : CONTINUOUS,DASHED,DOT,HIDDEN
setFont
  public void setFont(Font f)
set the font, curently only text size is used
getFont
  public Font getFont()
get the curent font
setScale
  public void setScale(double scale)
set the graphics scaling
setThickness
  public void setThickness(double lineThickness)
Set line thickness. Dosn't work currently.
drawLine
  public void drawLine(int x,
                       int y,
                       int x2,
                       int y2)
drawPolygon
  public void drawPolygon(int x[],
                          int y[],
                          int n)
drawRect
  public void drawRect(int x,
                       int y,
                       int x2,
                       int y2)
drawArc
  public void drawArc(int x,
                      int y,
                      int x2,
                      int y2,
                      int begin,
                      int end)
currently value of y2 is ignored so arc must lie on a circle
drawOval
  public void drawOval(int x,
                       int y,
                       int x1,
                       int y1)
currently value of y2 is ignored, x1 = radius
drawString
  public void drawString(String s,
                         int x,
                         int y)
main
  public void main(String args[])
Provides an example of the classes use. Sends sample output to file print.dxf.