Class SimpleText
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheetpreview.AbstractSpreadSheetPreview
-
- adams.gui.core.spreadsheetpreview.SimpleText
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class SimpleText extends AbstractSpreadSheetPreview
Simply displays the specified columns as text.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleText.SimpleTextPanelDisplays the rows in a text area.-
Nested classes/interfaces inherited from class adams.gui.core.spreadsheetpreview.AbstractSpreadSheetPreview
AbstractSpreadSheetPreview.AbstractSpreadSheetPreviewPanel
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadSheetColumnRangem_Columnsthe column range to display.protected Fontm_Fontthe font to use.protected Stringm_MissingValuethe string to use for missing values.-
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 SimpleText()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcolumnsTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.StringfontTipText()Returns the tip text for this property.AbstractSpreadSheetPreview.AbstractSpreadSheetPreviewPanelgenerate()Generates the preview panel.SpreadSheetColumnRangegetColumns()Returns the columns to display.protected FontgetDefaultFont()Returns the default font for the dialog.FontgetFont()Returns the font for the text area.StringgetMissingValue()Returns the string to use for missing values.StringglobalInfo()Returns a string describing the object.StringmissingValueTipText()Returns the tip text for this property.voidsetColumns(SpreadSheetColumnRange value)Sets the columns to display.voidsetFont(Font value)Sets the font for the text area.voidsetMissingValue(String value)Sets the string to use for missing values.-
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
-
-
-
-
Field Detail
-
m_Columns
protected SpreadSheetColumnRange m_Columns
the column range to display.
-
m_Font
protected Font m_Font
the font to use.
-
m_MissingValue
protected String m_MissingValue
the string to use for missing values.
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setColumns
public void setColumns(SpreadSheetColumnRange value)
Sets the columns to display.- Parameters:
value- the columns
-
getColumns
public SpreadSheetColumnRange getColumns()
Returns the columns to display.- Returns:
- the columns
-
columnsTipText
public String columnsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultFont
protected Font getDefaultFont()
Returns the default font for the dialog.- Returns:
- the default font
-
setFont
public void setFont(Font value)
Sets the font for the text area.- Parameters:
value- the font
-
getFont
public Font getFont()
Returns the font for the text area.- Returns:
- the font
-
fontTipText
public String fontTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMissingValue
public void setMissingValue(String value)
Sets the string to use for missing values.- Parameters:
value- the string
-
getMissingValue
public String getMissingValue()
Returns the string to use for missing values.- Returns:
- the string
-
missingValueTipText
public String missingValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
generate
public AbstractSpreadSheetPreview.AbstractSpreadSheetPreviewPanel generate()
Generates the preview panel.- Specified by:
generatein classAbstractSpreadSheetPreview- Returns:
- the preview panel, null if none generated
-
-