Package mgui.io
Interface InterfaceIO
- All Superinterfaces:
IconObject
- All Known Implementing Classes:
AmiraTractLoader,CaminoPipelineLoader,CaminoPipelineWriter,CaminoProjectLoader,CaminoProjectWriter,CaretAreaColourLoader,CaretAreaColourWriter,CaretMetricLoader,CaretPaintLoader,CaretPaintWriter,CaretSurfaceLoader,CaretSurfaceWriter,ColourMapLoader,ContinuousColourMapLoader,ContinuousColourMapWriter,CorticalNetworkMatrixLoader,DataSourceDriverLoader,DataSourceDriverWriter,DataSourceLoader,DataSourceWriter,DefaultMatrixFileLoader,DefaultMatrixFileWriter,DiscreteColourMapLoader,DiscreteColourMapWriter,DuffSurfaceLoader,ExportDataTableExcelWriter,ExportDataTableTextWriter,ExportDataTableWriter,FileLoader,FileWriter,FreesurferSurfaceLoader,FreesurferSurfaceWriter,FreesurferVertexDataLoader,FSLSurfaceLoader,FSLVolumeLoader,GiftiSurfaceLoader,GiftiSurfaceWriter,Graph3DWriter,GraphFileLoader,GraphFileWriter,GreyFileLoader,ImageFileLoader,ImageStackVideoWriter,ImportDataTableLoader,ImportDataTableTextLoader,InterfaceShapeLoader,InterfaceShapeWriter,InterfileLoader,JsonFileLoader,JsonFileWriter,MatrixFileLoader,MatrixFileWriter,MatrixTransformLoader,Mesh3DLoader,Mesh3DWriter,MincSurfaceDataLoader,MincSurfaceDataWriter,MincSurfaceLoader,MincSurfaceWriter,MincTransformLoader,MricroLutLoader,MricroLutWriter,NameMapLoader,NameMapWriter,NiftiVolumeLoader,NiftiVolumeWriter,PajekGraphLoader,PipelineLoader,PipelineProcessLibraryLoader,PipelineProcessLibraryWriter,PipelineWriter,Point2DShapeLoader,PointSet2DLoader,PointSet3DDataLoader,PointSet3DLoader,PolygonSet3DLoader,RGBFileLoader,ShapeDataLoader,ShapeModel3DLoader,ShapeModel3DWriter,ShapeXmlLoader,ShapeXmlWriter,StlWriter,StringVectorLoader,SurfaceDataFileLoader,SurfaceDataFileWriter,SurfaceFileLoader,SurfaceFileWriter,TrackVisTractLoader,Vector3DFileLoader,VectorDataLoader,VectorSet3DLoader,VideoLoader,VideoWriter,VideoXMLLoader,View3DLoader,View3DWriter,VolFileLoader,VolumeFileLoader,VolumeFileWriter,WavefrontSurfaceLoader,WavefrontSurfaceWriter,WorkspaceWriter,WunilVolumeLoader,XMLWriter
public interface InterfaceIO extends IconObject
Interface for all classes performing I/O operations. The emphasis of this class is:
- Provide a standard interface for input and output operations
- Allow I/O interfaces to be loaded at runtime in the the
InterfaceEnvironment - Provide complementarity for input and output operations; interfaces should specify their complement (writers have a complementary loader, and vice versa), and should also be specifiable by this complement
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description InterfaceIOTypegetComplementIOType()Returns anInterfaceIOTypespecifying theInterfaceIOwhich performs the complementary operation to this one.InterfaceIOTypegetIOType()Returns the registered IO type for this object, if one existsInterfaceIOOptionsgetOptions()Gets theInterfaceIOOptionsspecifying this I/O operation, if options have been set; otherwise returnsnull.java.lang.StringgetProgressMessage()java.lang.StringgetSuccessMessage()java.util.ArrayList<java.lang.Class<?>>getSupportedObjects()Returns a list of classes for objects which are supported by this I/O interfacejava.lang.StringgetTitle()voidsetFile(java.io.File file)voidsetOptions(InterfaceIOOptions options)Sets theInterfaceIOOptionsspecifying this I/O operationvoidsetURL(java.net.URL url)Methods inherited from interface mgui.resources.icons.IconObject
getObjectIcon
-
Method Details
-
getProgressMessage
java.lang.String getProgressMessage() -
getSuccessMessage
java.lang.String getSuccessMessage() -
getTitle
java.lang.String getTitle() -
setFile
void setFile(java.io.File file) -
setURL
void setURL(java.net.URL url) -
setOptions
Sets theInterfaceIOOptionsspecifying this I/O operation- Parameters:
options-
-
getOptions
InterfaceIOOptions getOptions()Gets theInterfaceIOOptionsspecifying this I/O operation, if options have been set; otherwise returnsnull.- Parameters:
options-
-
getIOType
InterfaceIOType getIOType()Returns the registered IO type for this object, if one exists- Returns:
- the registered IO type, or
nullif none exists
-
getSupportedObjects
java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Returns a list of classes for objects which are supported by this I/O interface- Returns:
-
getComplementIOType
InterfaceIOType getComplementIOType()Returns anInterfaceIOTypespecifying theInterfaceIOwhich performs the complementary operation to this one. I.e., loaders should specify their complementary writers.- Returns:
- The complementary class, or
nullif none is defined
-