Package mgui.io.domestic.variables
Class MatrixFileWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.variables.MatrixFileWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
- Direct Known Subclasses:
DefaultMatrixFileWriter
public abstract class MatrixFileWriter extends FileWriter
Base abstract class for writing a matrix to file.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
number_format
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description MatrixFileWriter()
-
Method Summary
Modifier and Type Method Description java.lang.String
getFailureMessage()
javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.java.lang.String
getSuccessMessage()
java.lang.String
getTitle()
void
setFormat(java.lang.String format)
boolean
writeMatrix(Jama.Matrix m)
abstract boolean
writeMatrix(Jama.Matrix m, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getSupportedObjects, getURL, setFile, setOptions, setURL, toString, write, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
number_format
public java.lang.String number_format
-
-
Constructor Details
-
MatrixFileWriter
public MatrixFileWriter()
-
-
Method Details
-
writeMatrix
- Throws:
java.io.IOException
InterfaceIOException
-
writeMatrix
public abstract boolean writeMatrix(Jama.Matrix m, ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException- Throws:
java.io.IOException
InterfaceIOException
-
setFormat
public void setFormat(java.lang.String format) -
getSuccessMessage
public java.lang.String getSuccessMessage()- Specified by:
getSuccessMessage
in interfaceInterfaceIO
- Overrides:
getSuccessMessage
in classFileWriter
-
getFailureMessage
public java.lang.String getFailureMessage()- Overrides:
getFailureMessage
in classFileWriter
-
getTitle
public java.lang.String getTitle()- Specified by:
getTitle
in interfaceInterfaceIO
- Overrides:
getTitle
in classFileWriter
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Overrides:
getObjectIcon
in classFileWriter
- Returns:
-