Package mgui.io.domestic.shapes
Class SurfaceDataFileWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceDataFileWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
- Direct Known Subclasses:
CaretPaintWriter
,MincSurfaceDataWriter
public abstract class SurfaceDataFileWriter extends FileWriter
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description SurfaceDataFileWriter()
-
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.util.ArrayList<java.lang.Class<?>>
getSupportedObjects()
Returns a list of classes for objects which are supported by this I/O interfacejava.lang.String
getTitle()
abstract void
setFormat(java.lang.String format)
boolean
write(InterfaceIOOptions options, ProgressUpdater progress_bar)
Writes this object according to the givenoptions
.boolean
writeValues(java.util.ArrayList<MguiNumber> values)
Writes the set of values to the data file.abstract boolean
writeValues(java.util.ArrayList<MguiNumber> values, ProgressUpdater progress_bar)
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SurfaceDataFileWriter
public SurfaceDataFileWriter()
-
-
Method Details
-
writeValues
public abstract boolean writeValues(java.util.ArrayList<MguiNumber> values, ProgressUpdater progress_bar) throws java.io.IOException- Throws:
java.io.IOException
-
setFormat
public abstract void setFormat(java.lang.String format) -
writeValues
Writes the set of values to the data file.- Parameters:
values
-- Returns:
- Throws:
java.io.IOException
-
write
Description copied from class:FileWriter
Writes this object according to the givenoptions
. If loaded object is of typePersistentObject
, this method should also set the file writer and reference URL for the object.- Specified by:
write
in classFileWriter
- Returns:
-
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:
-
getSupportedObjects
public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Description copied from interface:InterfaceIO
Returns a list of classes for objects which are supported by this I/O interface- Specified by:
getSupportedObjects
in interfaceInterfaceIO
- Overrides:
getSupportedObjects
in classFileWriter
- Returns:
-