Class ChangeInstanceWeights
- 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.ChangeInstanceWeights
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,InstancesTablePopupMenuItem
,ProcessRow
,ProcessSelectedRows
,Serializable
,Comparable<InstancesTablePopupMenuItem>
public class ChangeInstanceWeights extends AbstractProcessSelectedRows implements ProcessRow
Allows the user to change the weight of the selected attribute.- 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 ChangeInstanceWeights()
-
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.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, 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
-
Methods inherited from interface adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem
getMenuItem, isAvailable
-
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
-
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
-
-