Class AbstractPlotRow
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.instances.instancestable.AbstractPlotRow
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,InstancesTablePopupMenuItem
,PlotRow
,Serializable
,Comparable<InstancesTablePopupMenuItem>
public abstract class AbstractPlotRow extends AbstractOptionHandler implements PlotRow
Ancestor for plugins that plot a row.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
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 AbstractPlotRow()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
check(InstancesTablePopupMenuItemHelper.TableState state)
Hook method for checks before attempting the plot.int
compareTo(InstancesTablePopupMenuItem o)
For sorting the menu items.protected abstract boolean
doPlotRow(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified row.String
getIconName()
Returns the name of the icon.boolean
isAvailable(InstancesTablePopupMenuItemHelper.TableState state)
Returns whether the menu item is available.boolean
plotRow(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified row.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem
getMenuItem
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
compareTo
public int compareTo(InstancesTablePopupMenuItem o)
For sorting the menu items.- Specified by:
compareTo
in interfaceComparable<InstancesTablePopupMenuItem>
- Parameters:
o
- the other item- Returns:
- -1 if less than, 0 if equal, +1 if larger than this menu item name
-
getIconName
public String getIconName()
Returns the name of the icon.- Specified by:
getIconName
in interfaceInstancesTablePopupMenuItem
- 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
- Parameters:
state
- the state to use- Returns:
- true if available
-
check
protected String check(InstancesTablePopupMenuItemHelper.TableState state)
Hook method for checks before attempting the plot.- Parameters:
state
- the table state- Returns:
- null if passed, otherwise error message
-
doPlotRow
protected abstract boolean doPlotRow(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified row.- Parameters:
state
- the table state- Returns:
- true if successful
-
plotRow
public boolean plotRow(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified row.
-
-