Class AbstractSpectrumPanelScriptlet

  • All Implemented Interfaces:
    adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.gui.core.UndoHandler, Serializable, Comparable
    Direct Known Subclasses:
    SelectWaveNumber, WriteSpectrum

    public abstract class AbstractSpectrumPanelScriptlet
    extends adams.gui.scripting.AbstractUndoScriptlet
    Ancestor for scriptlets that require a SpectrumPanel.
    Version:
    $Revision: 1286 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.gui.scripting.AbstractScriptlet

        m_DataProvider, m_Owner, m_Parameters, m_Stopped
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Class[] getRequirements()
      Returns the class(es) of an object that must be present for this action to be executed.
      SpectrumPanel getSpectrumPanel()
      Returns the spectrum panel, if available.
      • Methods inherited from class adams.gui.scripting.AbstractUndoScriptlet

        addUndoPoint, getUndo, isUndoSupported, setUndo
      • Methods inherited from class adams.gui.scripting.AbstractScriptlet

        compareTo, doProcess, equals, forName, getAction, getBasePanel, getDataProvider, getDescription, getOptionsDescription, getOwner, getParameter, getParameterDescription, getScriptlets, hashCode, hasOwner, hasParameter, initialize, isStopped, process, setDataProvider, setOwner, setParameter, showStatus, stopExecution, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
    • Constructor Detail

      • AbstractSpectrumPanelScriptlet

        public AbstractSpectrumPanelScriptlet()
    • Method Detail

      • getRequirements

        public Class[] getRequirements()
        Returns the class(es) of an object that must be present for this action to be executed.
        Overrides:
        getRequirements in class adams.gui.scripting.AbstractUndoScriptlet
        Returns:
        the class(es) of which an instance must be present for execution, null if none necessary
      • getSpectrumPanel

        public SpectrumPanel getSpectrumPanel()
        Returns the spectrum panel, if available.
        Returns:
        the panel