Class FileIO
java.lang.Object
net.sourceforge.jeuclid.app.mathviewer.FileIO
File I/O support functionality for MathViewer.
- Version:
- $Revision: cca61eec2241 $
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileIORetrieve the FileIO object.Load the given file.voidsaveDocument(Frame parent, Node document, MutableLayoutContext params) Save a document.selectFileToOpen(Frame parent) Select a file.
-
Method Details
-
getInstance
Retrieve the FileIO object.- Returns:
- the FileIO object
-
selectFileToOpen
Select a file.- Parameters:
parent- Frame of the parent- Returns:
- A File or null.
-
loadFile
Load the given file.- Parameters:
parent- Frame of parent windowselectedFile- File object to load.- Returns:
- a parsed Document or null
-
saveDocument
Save a document.- Parameters:
parent- frame of parent.document- the MML document to save.params- rendering parameters.
-