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: cca61eec2241 $

Method Summary
static FileIO getInstance()
          Retrieve the FileIO object.
 Document loadFile(Frame parent, File selectedFile)
          Load the given file.
 void saveDocument(Frame parent, Node document, MutableLayoutContext params)
          Save a document.
 File selectFileToOpen(Frame parent)
          Select a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileIO getInstance()
Retrieve the FileIO object.

Returns:
the FileIO object

selectFileToOpen

public File selectFileToOpen(Frame parent)
Select a file.

Parameters:
parent - Frame of the parent
Returns:
A File 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,
                         Node document,
                         MutableLayoutContext params)
Save a document.

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


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