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
  • 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

      public boolean writeValues​(java.util.ArrayList<MguiNumber> values) throws java.io.IOException
      Writes the set of values to the data file.
      Parameters:
      values -
      Returns:
      Throws:
      java.io.IOException
    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileWriter
      Writes this object according to the given options. If loaded object is of type PersistentObject, this method should also set the file writer and reference URL for the object.
      Specified by:
      write in class FileWriter
      Returns:
    • getSuccessMessage

      public java.lang.String getSuccessMessage()
      Specified by:
      getSuccessMessage in interface InterfaceIO
      Overrides:
      getSuccessMessage in class FileWriter
    • getFailureMessage

      public java.lang.String getFailureMessage()
      Overrides:
      getFailureMessage in class FileWriter
    • getTitle

      public java.lang.String getTitle()
      Specified by:
      getTitle in interface InterfaceIO
      Overrides:
      getTitle in class FileWriter
    • getObjectIcon

      public javax.swing.Icon getObjectIcon()
      Description copied from interface: IconObject
      Returns the Icon associated with this object.
      Specified by:
      getObjectIcon in interface IconObject
      Overrides:
      getObjectIcon in class FileWriter
      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 interface InterfaceIO
      Overrides:
      getSupportedObjects in class FileWriter
      Returns: