Package adams.gui.tools.previewbrowser
Interface ContentHandler
-
- All Superinterfaces:
Destroyable
,OptionHandler
- All Known Subinterfaces:
ObjectContentHandler
- All Known Implementing Classes:
AbstractContentHandler
,AbstractObjectContentHandler
,AbstractReportHandler
,AbstractSpreadSheetHandler
,ActualVsPredictedHandler
,AnnotateImage
,AnnotationsAndPredictionsFromReport
,ApacheCommonsImageHandler
,ApacheCommonsImageMetaDataHandler
,BlueChannelImageHandler
,BoofCVImageHandler
,CocoAnnotationsHandler
,ColorDistributionHandler
,ConfusionMatrixHandler
,ConsoleOutputHandler
,CsvSpreadSheetHandler
,DeepLabCutCSVHandler
,DetectronAnnotationsHandler
,ExcelSpreadSheetHandler
,FileInfoHandler
,FlowHandler
,FromFileHandler
,GrayOrIndexedImageHandler
,GroovyHandler
,HexaDecimalHandler
,ImageClassificationHandler
,ImageHandler
,ImageMetaDataExtractorHandler
,ImageSegmentationAnnotationsHandler
,IndexedPNGImageHandler
,InstanceExplorerHandler
,JsonPrettyPrintHandler
,JsonTreeViewHandler
,ObjectAnnotationsHandler
,ObjectAnnotationsReportHandler
,ObjectCentersFromReport
,ObjectLocationsFromReport
,ObjectLocationsFromSpreadSheet
,ODFSpreadSheetHandler
,PDFHandler
,PDFTextHandler
,PlainTextHandler
,PointsFromReportHandler
,PropertiesHandler
,ReportHandler
,ScriptHandler
,SerializedFileHandler
,SimpleImageSegmentationAnnotationsHandler
,TrimapImageHandler
,TsvSpreadSheetHandler
,VggXmlAnnotationHandler
,ViaAnnotationsHandler
,WekaDatasetHandler
,XMLHandler
,YamlHandler
,YoloAnnotationsHandler
public interface ContentHandler extends OptionHandler
Interface for content handlers.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PreviewPanel
createPreview(File file)
Creates the actual preview.String[]
getExtensions()
Returns the list of extensions (without dot) that this handler can take care of.PreviewPanel
getPreview(File file)
Returns the preview for the specified file.PreviewPanel
reusePreview(File file, PreviewPanel lastPreview)
Reuses the last preview, if possible.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
MATCH_ALL
static final String MATCH_ALL
the match-all extension.- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtensions
String[] getExtensions()
Returns the list of extensions (without dot) that this handler can take care of.- Returns:
- the list of extensions (no dot)
-
reusePreview
PreviewPanel reusePreview(File file, PreviewPanel lastPreview)
Reuses the last preview, if possible.
Default implementation just creates a new preview.- Parameters:
file
- the file to create the view for- Returns:
- the preview
-
createPreview
PreviewPanel createPreview(File file)
Creates the actual preview.- Parameters:
file
- the file to create the view for- Returns:
- the preview
-
getPreview
PreviewPanel getPreview(File file)
Returns the preview for the specified file.- Parameters:
file
- the file to create the view for- Returns:
- the preview, NoPreviewAvailablePanel in case of an error
- See Also:
NoPreviewAvailablePanel
-
-