Package gov.nih.mipav.plugins
Interface PlugInFile
- All Superinterfaces:
PlugIn
An interface for a plugin which reads/writes images.
- Author:
- mccreedy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this plugin supports reading of images in its format.booleanReturns whether this plugin supports writing of images in its format.booleanChecks whether a particular file extension is supported by this plugin.voidRead an image of the type handled by this plugin.voidwriteImage(ModelImage image) Write an image out to the file type handled by this plugin.
-
Field Details
-
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
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
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
-