Class InvestigatorAsNewDataset
- 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.InvestigatorAsNewDataset
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,InstancesTablePopupMenuItem
,ProcessRow
,ProcessSelectedRows
,Serializable
,Comparable<InstancesTablePopupMenuItem>
public class InvestigatorAsNewDataset extends AbstractProcessSelectedRows implements ProcessRow
Allows the user to add the selected rows as new dataset in the Investigator.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.instances.instancestable.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 InvestigatorAsNewDataset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doProcessSelectedRows(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified rows.protected String
getDefaultMenuItem()
Returns the default name for the menu item.String
getIconName()
Returns the name of the icon.String
globalInfo()
Returns a string describing the object.boolean
isAvailable(InstancesTablePopupMenuItemHelper.TableState state)
Returns whether the menu item is available.int
maxNumRows()
Returns the maximum number of rows that the plugin requires.int
minNumRows()
Returns the minimum number of rows that the plugin requires.boolean
processRow(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.-
Methods inherited from class adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
check, compareTo, defineOptions, 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.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem
getMenuItem
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getIconName
public String getIconName()
Returns the name of the icon.- Specified by:
getIconName
in interfaceInstancesTablePopupMenuItem
- Overrides:
getIconName
in classAbstractProcessSelectedRows
- Returns:
- the name, null if none available
-
isAvailable
public boolean isAvailable(InstancesTablePopupMenuItemHelper.TableState state)
Returns whether the menu item is available.- Specified by:
isAvailable
in interfaceInstancesTablePopupMenuItem
- Overrides:
isAvailable
in classAbstractProcessSelectedRows
- Parameters:
state
- the state to use- Returns:
- true if available
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItem
in classAbstractProcessSelectedRows
- Returns:
- the name
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Specified by:
minNumRows
in interfaceProcessSelectedRows
- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Specified by:
maxNumRows
in interfaceProcessSelectedRows
- Returns:
- the maximum, -1 for none
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified rows.- Specified by:
doProcessSelectedRows
in classAbstractProcessSelectedRows
- Parameters:
state
- the table state- Returns:
- true if successful
-
processRow
public boolean processRow(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
processRow
in interfaceProcessRow
- Parameters:
state
- the table state- Returns:
- true if successful
-
-