Package adams.doc.latex.generator
Class Table
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.doc.latex.generator.AbstractCodeGenerator
-
- adams.doc.latex.generator.Table
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,CodeGenerator,adams.flow.control.StorageUser,adams.flow.core.FlowContextHandler,Serializable
public class Table extends AbstractCodeGenerator implements adams.flow.control.StorageUser
Inserts the spreadsheet obtained from storage as table.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-skip <boolean> (property: skip) If enabled, the code generation gets skipped. default: false
-no-var-expansion <boolean> (property: noVariableExpansion) If enabled, variable expansion gets skipped. default: false
-storage-name <adams.flow.control.StorageName> (property: storageName) The name for the lookup table in the internal storage. default: table
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default:
-locale <java.util.Locale> (property: locale) The locale to use for formatting the numbers. default: Default
-number-format <java.lang.String> (property: numberFormat) The format for the numbers (see java.text.DecimalFormat), use empty string for default 'double' output. default:
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Localem_Localethe locale to use.protected Stringm_MissingValueThe placeholder for missing values.protected Stringm_NumberFormatThe format for the numbers.protected adams.flow.control.StorageNamem_StorageNamethe storage name of the spreadsheet to insert.-
Fields inherited from class adams.doc.latex.generator.AbstractCodeGenerator
m_FlowContext, m_NoVariableExpansion, m_Skip
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected StringdoGenerate()Generates the actual code.protected StringgetDefaultMissingValue()Returns the default missing value.protected StringgetDefaultNumberFormat()Returns the default number format.LocalegetLocale()Returns the locale in use.StringgetMissingValue()Returns the current placeholder for missing values.StringgetNumberFormat()Returns the number format.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.String[]getRequiredPackages()Returns the list of required LaTeX packages for this code generator.adams.flow.control.StorageNamegetStorageName()Returns the name for the lookup table in the internal storage.StringglobalInfo()Returns a string describing the object.booleanisUsingStorage()Returns whether storage items are being used.StringlocaleTipText()Returns the tip text for this property.StringmissingValueTipText()Returns the tip text for this property.StringnumberFormatTipText()Returns the tip text for this property.voidsetLocale(Locale value)Sets the locale to use.voidsetMissingValue(String value)Sets the placeholder for missing values.voidsetNumberFormat(String value)Sets the number format.voidsetStorageName(adams.flow.control.StorageName value)Sets the name for the lookup table in the internal storage.StringstorageNameTipText()Returns the tip text for this property.-
Methods inherited from class adams.doc.latex.generator.AbstractCodeGenerator
check, ensureTrailingNewLine, ensureTrailingNewLine, escape, expand, expandEscape, generate, getAdditionalInformation, getFlowContext, getNoVariableExpansion, getSkip, noVariableExpansionTipText, setFlowContext, setNoVariableExpansion, setSkip, skipTipText
-
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
-
-
-
-
Field Detail
-
m_StorageName
protected adams.flow.control.StorageName m_StorageName
the storage name of the spreadsheet to insert.
-
m_MissingValue
protected String m_MissingValue
The placeholder for missing values.
-
m_Locale
protected Locale m_Locale
the locale to use.
-
m_NumberFormat
protected String m_NumberFormat
The format for the numbers.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractCodeGenerator
-
setStorageName
public void setStorageName(adams.flow.control.StorageName value)
Sets the name for the lookup table in the internal storage.- Parameters:
value- the name
-
getStorageName
public adams.flow.control.StorageName getStorageName()
Returns the name for the lookup table in the internal storage.- Returns:
- the name
-
storageNameTipText
public String storageNameTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultMissingValue
protected String getDefaultMissingValue()
Returns the default missing value.- Returns:
- the default for missing values
-
setMissingValue
public void setMissingValue(String value)
Sets the placeholder for missing values.- Parameters:
value- the placeholder
-
getMissingValue
public String getMissingValue()
Returns the current placeholder for missing values.- Returns:
- the placeholder
-
missingValueTipText
public String missingValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setLocale
public void setLocale(Locale value)
Sets the locale to use.- Parameters:
value- the locale
-
getLocale
public Locale getLocale()
Returns the locale in use.- Returns:
- the locale
-
localeTipText
public String localeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultNumberFormat
protected String getDefaultNumberFormat()
Returns the default number format.- Returns:
- the default format
-
setNumberFormat
public void setNumberFormat(String value)
Sets the number format.- Parameters:
value- the format
-
getNumberFormat
public String getNumberFormat()
Returns the number format.- Returns:
- the format
-
numberFormatTipText
public String numberFormatTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfoin interfaceCodeGenerator- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Overrides:
getQuickInfoin classAbstractCodeGenerator- Returns:
- null if no info available, otherwise short string
-
isUsingStorage
public boolean isUsingStorage()
Returns whether storage items are being used.- Specified by:
isUsingStoragein interfaceadams.flow.control.StorageUser- Returns:
- true if storage items are used
-
getRequiredPackages
public String[] getRequiredPackages()
Returns the list of required LaTeX packages for this code generator.- Specified by:
getRequiredPackagesin interfaceCodeGenerator- Specified by:
getRequiredPackagesin classAbstractCodeGenerator- Returns:
- the packages
-
doGenerate
protected String doGenerate()
Generates the actual code.- Specified by:
doGeneratein classAbstractCodeGenerator- Returns:
- the generated code
-
-