Class AbstractPlotColumn
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.instances.instancestable.AbstractPlotColumn
-
- 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.core.spreadsheettable.TableRowRangeCheck,InstancesTablePopupMenuItem,PlotColumn,Serializable,Comparable<InstancesTablePopupMenuItem>
public abstract class AbstractPlotColumn extends adams.core.option.AbstractOptionHandler implements PlotColumn
Ancestor for plugins that plot a column.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractPlotColumn()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(InstancesTablePopupMenuItemHelper.TableState state)Hook method for checks before attempting the plot.intcompareTo(InstancesTablePopupMenuItem o)For sorting the menu items.protected abstract booleandoPlotColumn(InstancesTablePopupMenuItemHelper.TableState state)Plots the specified column.StringgetIconName()Returns the name of the icon.booleanisAvailable(InstancesTablePopupMenuItemHelper.TableState state)Returns whether the menu item is available.booleanplotColumn(InstancesTablePopupMenuItemHelper.TableState state)Plots the specified column.-
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
-
-
-
-
Method Detail
-
compareTo
public int compareTo(InstancesTablePopupMenuItem o)
For sorting the menu items.- Specified by:
compareToin 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:
getIconNamein interfaceInstancesTablePopupMenuItem- Returns:
- the name, null if none available
-
isAvailable
public boolean isAvailable(InstancesTablePopupMenuItemHelper.TableState state)
Returns whether the menu item is available.- Specified by:
isAvailablein 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
-
doPlotColumn
protected abstract boolean doPlotColumn(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified column.- Parameters:
state- the table state- Returns:
- true if successful
-
plotColumn
public boolean plotColumn(InstancesTablePopupMenuItemHelper.TableState state)
Plots the specified column.- Specified by:
plotColumnin interfacePlotColumn- Parameters:
state- the table state- Returns:
- true if successful
-
-