public void writeGraphics(String graphicsSaveFile) throws IOException {
  FileOutputStream ostream=new FileOutputStream(graphicsSaveFile);
  ObjectOutputStream objectstream=new ObjectOutputStream(ostream);
  writeGraphics(objectstream);
  objectstream.close();
}

public void writeGraphics ( String graphicsSaveFile ) throws IOException { FileOutputStream ostream = new FileOutputStream ( graphicsSaveFile ) ; ObjectOutputStream objectstream = new ObjectOutputStream ( ostream ) ; writeGraphics ( objectstream ) ; objectstream . close ( ) ; }
write the graphics out to a file
