Class HeatmapExporter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.debug.objectexport.AbstractObjectExporter
-
- adams.gui.visualization.debug.objectexporter.HeatmapExporter
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.io.FileFormatHandler,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,Serializable
public class HeatmapExporter extends adams.gui.visualization.debug.objectexport.AbstractObjectExporterExports Heatmap objects in the simple heatmap format.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HeatmapExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdoExport(Object obj, File file)Performs the actual export.StringgetFormatDescription()Returns a string describing the format (used in the file chooser).String[]getFormatExtensions()Returns the extension(s) of the format.booleanhandles(Class cls)Checks whether the exporter can handle the specified class.-
Methods inherited from class adams.gui.visualization.debug.objectexport.AbstractObjectExporter
export, getDefaultFormatExtension, getExporters, getExporters, getExporters, getExporters, getExporters, globalInfo, initExporters, instantiate
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getFormatDescription
public String getFormatDescription()
Returns a string describing the format (used in the file chooser).- Specified by:
getFormatDescriptionin interfaceadams.core.io.FileFormatHandler- Specified by:
getFormatDescriptionin classadams.gui.visualization.debug.objectexport.AbstractObjectExporter- Returns:
- a description suitable for displaying in the file chooser
-
getFormatExtensions
public String[] getFormatExtensions()
Returns the extension(s) of the format.- Specified by:
getFormatExtensionsin interfaceadams.core.io.FileFormatHandler- Specified by:
getFormatExtensionsin classadams.gui.visualization.debug.objectexport.AbstractObjectExporter- Returns:
- the extension (without the dot!)
-
handles
public boolean handles(Class cls)
Checks whether the exporter can handle the specified class.- Specified by:
handlesin classadams.gui.visualization.debug.objectexport.AbstractObjectExporter- Parameters:
cls- the class to check- Returns:
- true if the exporter can handle this type of object
-
doExport
protected String doExport(Object obj, File file)
Performs the actual export.- Specified by:
doExportin classadams.gui.visualization.debug.objectexport.AbstractObjectExporter- Parameters:
obj- the object to exportfile- the file to export to- Returns:
- null if successful, otherwise error message
-
-