Package adams.gui.print
Class NullWriter
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class NullWriter extends JComponentWriter
Dummy - generates no output.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.print.JComponentWriter
m_Component, m_CustomHeight, m_CustomWidth, m_Enabled, m_OutputFile, m_UseCustomDimensions
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description NullWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateOutput()generates the actual output.StringgetDescription()returns the name of the writer, to display in the FileChooser.String[]getExtensions()returns no extensions.StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.gui.print.JComponentWriter
customHeightTipText, customWidthTipText, defineOptions, enabledTipText, fileTipText, forCommandLine, forName, getComponent, getCustomHeight, getCustomWidth, getEnabled, getFile, getFileFilters, getUseCustomDimensions, getWriterForExtension, getWriterForFile, getWriterForFile, getWriters, main, setComponent, setCustomHeight, setCustomWidth, setEnabled, setFile, setUseCustomDimensions, toOutput, toOutput, toOutput, useCustomDimensionsTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getDescription
public String getDescription()
returns the name of the writer, to display in the FileChooser.- Specified by:
getDescriptionin classJComponentWriter- Returns:
- the name of the writer
-
getExtensions
public String[] getExtensions()
returns no extensions.- Specified by:
getExtensionsin classJComponentWriter- Returns:
- zero-length array
-
generateOutput
public void generateOutput() throws Exceptiongenerates the actual output.- Specified by:
generateOutputin classJComponentWriter- Throws:
Exception- if something goes wrong
-
-