Package adams.gui.core.spreadsheettable
Class ArrayStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
-
- adams.gui.core.spreadsheettable.ArrayStatistic
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,ProcessRow,ProcessSelectedRows,SpreadSheetTablePopupMenuItem,Serializable,Comparable<SpreadSheetTablePopupMenuItem>
public class ArrayStatistic extends AbstractProcessSelectedRows implements ProcessRow
Allows the calculation of row statistics.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_COLUMNSstatic StringKEY_STATISTIC-
Fields inherited from class adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
m_MenuItemText
-
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 ArrayStatistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoProcessSelectedRows(SpreadSheetTablePopupMenuItemHelper.TableState state)Processes the specified row.protected StringgetDefaultMenuItem()Returns the default name for the menu item.StringglobalInfo()Returns a string describing the object.intmaxNumRows()Returns the maximum number of rows that the plugin requires.intminNumRows()Returns the minimum number of rows that the plugin requires.booleanprocessRow(SpreadSheetTablePopupMenuItemHelper.TableState state)Processes the specified row.protected PropertiespromptParameters(SpreadSheetTable table)Prompts the user for parameters.-
Methods inherited from class adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
check, compareTo, defineOptions, getIconName, getMenuItem, getMenuItemText, menuItemTextTipText, processSelectedRows, setMenuItemText
-
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 java.lang.Comparable
compareTo
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItem
getIconName, getMenuItem
-
-
-
-
Field Detail
-
KEY_COLUMNS
public static final String KEY_COLUMNS
- See Also:
- Constant Field Values
-
KEY_STATISTIC
public static final String KEY_STATISTIC
- See Also:
- Constant Field 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
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItemin classAbstractProcessSelectedRows- Returns:
- the name
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Specified by:
minNumRowsin interfaceProcessSelectedRows- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Specified by:
maxNumRowsin interfaceProcessSelectedRows- Returns:
- the maximum, -1 for none
-
promptParameters
protected Properties promptParameters(SpreadSheetTable table)
Prompts the user for parameters.- Parameters:
table- the table this is for- Returns:
- the parameters, null if cancelled dialog
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
doProcessSelectedRowsin classAbstractProcessSelectedRows- Parameters:
state- the table state- Returns:
- true if successful
-
processRow
public boolean processRow(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
processRowin interfaceProcessRow- Parameters:
state- the table state- Returns:
- true if successful
-
-