net.sourceforge.jeuclid.app.mathviewer
Class FileIO

java.lang.Object
  extended by net.sourceforge.jeuclid.app.mathviewer.FileIO

public final class FileIO
extends Object

File I/O support functionality for MathViewer.

Version:
$Revision: 310 $
Author:
Max Berger

Method Summary
static FileIO getFileIO()
          Retrieve the FileIO object.
 Document loadDocument(Frame parent)
          Load a document.
 Document loadFile(Frame parent, File selectedFile)
          Load the given file.
 void saveDocument(Frame parent, Document document, Map<ParameterKey,String> params)
          Save a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFileIO

public static FileIO getFileIO()
Retrieve the FileIO object.

Returns:
the FileIO object

loadDocument

public Document loadDocument(Frame parent)
Load a document.

Parameters:
parent - Frame of the parent
Returns:
A parsed Document, or null.

loadFile

public Document loadFile(Frame parent,
                         File selectedFile)
Load the given file.

Parameters:
selectedFile - File object to load.
parent - Frame of parent window
Returns:
a parsed Document or null

saveDocument

public void saveDocument(Frame parent,
                         Document document,
                         Map<ParameterKey,String> params)
Save a document.

Parameters:
parent - frame of parent.
document - the MML document to save.
params - rendering parameters.


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.