Interface PlugInFile

All Superinterfaces:
PlugIn

public interface PlugInFile extends PlugIn
An interface for a plugin which reads/writes images.
Author:
mccreedy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
     

    Fields inherited from interface gov.nih.mipav.plugins.PlugIn

    Category
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this plugin supports reading of images in its format.
    boolean
    Returns whether this plugin supports writing of images in its format.
    boolean
    Checks whether a particular file extension is supported by this plugin.
    void
    Read an image of the type handled by this plugin.
    void
    Write an image out to the file type handled by this plugin.
  • Field Details

    • CATEGORY

      static final String[] CATEGORY
  • Method Details

    • canReadImages

      boolean canReadImages()
      Returns whether this plugin supports reading of images in its format.
      Returns:
      whether this plugin supports reading of images
    • canWriteImages

      boolean canWriteImages()
      Returns whether this plugin supports writing of images in its format.
      Returns:
      whether this plugin supports writing of images
    • isExtensionSupported

      boolean isExtensionSupported(String ext)
      Checks whether a particular file extension is supported by this plugin.
      Parameters:
      ext - the file extension to check
      Returns:
      whether the extension is supported
    • readImage

      void readImage()
      Read an image of the type handled by this plugin. The plugin should get the path to the file from the user.
    • writeImage

      void writeImage(ModelImage image)
      Write an image out to the file type handled by this plugin. The plugin should get the path to write to from the user.
      Parameters:
      image - the image to write out