public class JIPipeImageJAdapterRegistry extends Object
Constructor and Description |
---|
JIPipeImageJAdapterRegistry(JIPipe jiPipe) |
Modifier and Type | Method and Description |
---|---|
ImageJDataExporterUI |
createUIForExportOperation(JIPipeWorkbench workbench,
ImageJDataExportOperation exportOperation)
Generates a UI for the importer
|
ImageJDataImporterUI |
createUIForImportOperation(JIPipeWorkbench workbench,
ImageJDataImportOperation importOperation)
Generates a UI for the importer
|
Set<ImageJDataExporter> |
getAvailableExporters(Class<? extends JIPipeData> dataClass,
boolean includeConvertible)
Returns all exporter instances that
|
Set<ImageJDataImporter> |
getAvailableImporters(Class<? extends JIPipeData> dataClass,
boolean includeConvertible)
Returns all importer instances that
|
ImageJDataExporter |
getDefaultExporterFor(Class<? extends JIPipeData> dataClass)
Gets the default exporter for a data class
|
ImageJDataImporter |
getDefaultImporterFor(Class<? extends JIPipeData> dataClass)
Gets the default importer for a data class
|
ImageJDataExporter |
getExporterById(String id) |
String |
getIdOf(ImageJDataExporter exporter) |
String |
getIdOf(ImageJDataImporter importer) |
ImageJDataImporter |
getImporterById(String id) |
JIPipe |
getJIPipe() |
void |
register(String id,
ImageJDataExporter exporter,
Class<? extends ImageJDataExporterUI> uiClass)
Registers an importer
|
void |
register(String id,
ImageJDataImporter importer,
Class<? extends ImageJDataImporterUI> uiClass)
Registers an importer
|
void |
setDefaultExporterFor(Class<? extends JIPipeData> dataClass,
String id)
Sets the default exporter for a data type
|
void |
setDefaultImporterFor(Class<? extends JIPipeData> dataClass,
String id)
Sets the default importer for a data type
|
public JIPipeImageJAdapterRegistry(JIPipe jiPipe)
public void register(String id, ImageJDataImporter importer, Class<? extends ImageJDataImporterUI> uiClass)
id
- unique ID of the importerimporter
- the importer instanceuiClass
- UI class for the importer. can be null (falls back to DefaultImageJDataImporterUI
)public void register(String id, ImageJDataExporter exporter, Class<? extends ImageJDataExporterUI> uiClass)
id
- unique ID of the importerexporter
- the exporter instanceuiClass
- UI class for the exporter. can be null (falls back to DefaultImageJDataExporterUI
)public String getIdOf(ImageJDataImporter importer)
public String getIdOf(ImageJDataExporter exporter)
public Set<ImageJDataImporter> getAvailableImporters(Class<? extends JIPipeData> dataClass, boolean includeConvertible)
dataClass
- the data type to importincludeConvertible
- if the list should include importers that convert to the specified data typepublic Set<ImageJDataExporter> getAvailableExporters(Class<? extends JIPipeData> dataClass, boolean includeConvertible)
dataClass
- the data type to exporterincludeConvertible
- if the list should include importers that convert to the specified data typepublic ImageJDataImporterUI createUIForImportOperation(JIPipeWorkbench workbench, ImageJDataImportOperation importOperation)
workbench
- the workbenchimportOperation
- importerpublic ImageJDataExporterUI createUIForExportOperation(JIPipeWorkbench workbench, ImageJDataExportOperation exportOperation)
workbench
- the workbenchexportOperation
- importerpublic ImageJDataImporter getDefaultImporterFor(Class<? extends JIPipeData> dataClass)
dataClass
- the data classpublic void setDefaultExporterFor(Class<? extends JIPipeData> dataClass, String id)
dataClass
- the data typeid
- the ID of the exporterpublic void setDefaultImporterFor(Class<? extends JIPipeData> dataClass, String id)
dataClass
- the data typeid
- the ID of the exporterpublic ImageJDataExporter getDefaultExporterFor(Class<? extends JIPipeData> dataClass)
dataClass
- the data classpublic ImageJDataImporter getImporterById(String id)
public ImageJDataExporter getExporterById(String id)
public JIPipe getJIPipe()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.