Class ExportSpectra
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
-
- adams.gui.visualization.instances.instancestable.ExportSpectra
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem,adams.gui.visualization.instances.instancestable.ProcessRow,adams.gui.visualization.instances.instancestable.ProcessSelectedRows,Serializable,Comparable<adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem>
public class ExportSpectra extends adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows implements adams.gui.visualization.instances.instancestable.ProcessRowExports the selected rows as spectra.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_ATTRIBUTESstatic StringKEY_DIRECTORYstatic StringKEY_EXTRACTWAVENOSstatic StringKEY_SAMPLEIDstatic StringKEY_WAVENOGROUPstatic StringKEY_WAVENOREGEXPstatic StringKEY_WRITER
-
Constructor Summary
Constructors Constructor Description ExportSpectra()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoProcessSelectedRows(adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItemHelper.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(adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItemHelper.TableState state)Processes the specified row.protected adams.core.PropertiespromptParameters(adams.gui.visualization.instances.InstancesTable table)Prompts the user for parameters.-
Methods inherited from class adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
check, compareTo, defineOptions, getIconName, getMenuItem, getMenuItemText, isAvailable, 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
-
-
-
-
Field Detail
-
KEY_SAMPLEID
public static final String KEY_SAMPLEID
- See Also:
- Constant Field Values
-
KEY_ATTRIBUTES
public static final String KEY_ATTRIBUTES
- See Also:
- Constant Field Values
-
KEY_EXTRACTWAVENOS
public static final String KEY_EXTRACTWAVENOS
- See Also:
- Constant Field Values
-
KEY_WAVENOREGEXP
public static final String KEY_WAVENOREGEXP
- See Also:
- Constant Field Values
-
KEY_WAVENOGROUP
public static final String KEY_WAVENOGROUP
- See Also:
- Constant Field Values
-
KEY_WRITER
public static final String KEY_WRITER
- See Also:
- Constant Field Values
-
KEY_DIRECTORY
public static final String KEY_DIRECTORY
- See Also:
- Constant Field Values
-
-
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
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItemin classadams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows- Returns:
- the name
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Specified by:
minNumRowsin interfaceadams.gui.visualization.instances.instancestable.ProcessSelectedRows- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Specified by:
maxNumRowsin interfaceadams.gui.visualization.instances.instancestable.ProcessSelectedRows- Returns:
- the maximum, -1 for none
-
promptParameters
protected adams.core.Properties promptParameters(adams.gui.visualization.instances.InstancesTable table)
Prompts the user for parameters.- Parameters:
table- the table this is for- Returns:
- the parameters, null if cancelled dialog
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
doProcessSelectedRowsin classadams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows- Parameters:
state- the table state- Returns:
- true if successful
-
processRow
public boolean processRow(adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
processRowin interfaceadams.gui.visualization.instances.instancestable.ProcessRow- Parameters:
state- the table state- Returns:
- true if successful
-
-