Package adams.doc.latex.generator
Class BlockSize
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.doc.latex.generator.AbstractCodeGenerator
-
- adams.doc.latex.generator.AbstractMetaCodeGenerator
-
- adams.doc.latex.generator.BlockSize
-
- 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.core.FlowContextHandler
,Serializable
public class BlockSize extends AbstractMetaCodeGenerator
Inserts the code from the base generator inside a block with the specified font size.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-no-var-expansion <boolean> (property: noVariableExpansion) If enabled, variable expansion gets skipped. default: false
-generator <adams.doc.latex.generator.CodeGenerator> (property: generator) Generates the code for the differently sized block. default: adams.doc.latex.generator.Verbatim
-font-size <tiny|scriptsize|footnotesize|small|normalsize|large|Large|LARGE|huge|Huge> (property: fontSize) The font size to use for the encapsulated block. default: normalsize
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockSize.FontSize
The available size.
-
Field Summary
Fields Modifier and Type Field Description protected BlockSize.FontSize
m_FontSize
the font size.-
Fields inherited from class adams.doc.latex.generator.AbstractMetaCodeGenerator
m_Generator
-
Fields inherited from class adams.doc.latex.generator.AbstractCodeGenerator
m_FlowContext, m_NoVariableExpansion, m_Skip
-
-
Constructor Summary
Constructors Constructor Description BlockSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected String
doGenerate()
Generates the actual code.String
fontSizeTipText()
Returns the tip text for this property.String
generatorTipText()
Returns the tip text for this property.protected CodeGenerator
getDefaultGenerator()
Returns the default code generator to use.BlockSize.FontSize
getFontSize()
Returns the font size for the block.String
getQuickInfo()
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.String
globalInfo()
Returns a string describing the object.void
setFontSize(BlockSize.FontSize value)
Sets the font size for the block.-
Methods inherited from class adams.doc.latex.generator.AbstractMetaCodeGenerator
getGenerator, setFlowContext, setGenerator
-
Methods inherited from class adams.doc.latex.generator.AbstractCodeGenerator
check, ensureTrailingNewLine, ensureTrailingNewLine, escape, expand, expandEscape, generate, getAdditionalInformation, getFlowContext, getNoVariableExpansion, getSkip, noVariableExpansionTipText, 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_FontSize
protected BlockSize.FontSize m_FontSize
the font size.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in 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:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractMetaCodeGenerator
-
getDefaultGenerator
protected CodeGenerator getDefaultGenerator()
Returns the default code generator to use.- Specified by:
getDefaultGenerator
in classAbstractMetaCodeGenerator
- Returns:
- the default
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Specified by:
generatorTipText
in classAbstractMetaCodeGenerator
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFontSize
public void setFontSize(BlockSize.FontSize value)
Sets the font size for the block.- Parameters:
value
- the size
-
getFontSize
public BlockSize.FontSize getFontSize()
Returns the font size for the block.- Returns:
- the size
-
fontSizeTipText
public String fontSizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getRequiredPackages
public String[] getRequiredPackages()
Returns the list of required LaTeX packages for this code generator.- Specified by:
getRequiredPackages
in interfaceCodeGenerator
- Specified by:
getRequiredPackages
in classAbstractCodeGenerator
- Returns:
- the packages
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceCodeGenerator
- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractMetaCodeGenerator
- Returns:
- null if no info available, otherwise short string
-
doGenerate
protected String doGenerate()
Generates the actual code.- Specified by:
doGenerate
in classAbstractCodeGenerator
- Returns:
- the generated code
-
-