cwi.SVGGraphics
Class FilePicker

java.lang.Object
  extended bycwi.SVGGraphics.FilePicker

class FilePicker
extends java.lang.Object

Wrapper around the file chooser widget of Swing to generate a new svg file. Takes care of checking an overwrite of an old file, keeps the previous directory for writing, etc. (Why aren't these things part of the Swing widget, b.t.w.?)

Author:
Ivan Herman

Field Summary
(package private) static java.lang.String dir
           
 
Constructor Summary
(package private) FilePicker()
           
 
Method Summary
(package private) static java.io.PrintStream getSVGFile()
          Main entry: get an svg file for writing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

static java.lang.String dir
Constructor Detail

FilePicker

FilePicker()
Method Detail

getSVGFile

static java.io.PrintStream getSVGFile()
Main entry: get an svg file for writing. At start up, the default directory is the system property "user.dir". Afterwards, the previous directory is used.

Returns:
stream to an svg file, or null if user has cancelled.