Package deepWhistle

Class DeepWhistleControl

All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class DeepWhistleControl extends MaskedFFTControl
Control class for DeepWhistle module
Author:
Jamie Macaulay
  • Field Details

    • unitType

      public static String unitType
  • Constructor Details

    • DeepWhistleControl

      public DeepWhistleControl(String unitName)
  • Method Details

    • getSettingsReference

      public Serializable getSettingsReference()
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion

      public long getSettingsVersion()
      Returns:
      An integer version number for the settings
    • restoreSettings

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Parameters:
      pamControlledUnitSettings -
      Returns:
      true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
    • createDetectionMenu

      public JMenuItem createDetectionMenu(Frame parentFrame)
      Description copied from class: PamControlledUnit
      Create a JMenu object containing MenuItems associated with PamProcesses
      Overrides:
      createDetectionMenu in class PamControlledUnit
      Parameters:
      parentFrame - The owner frame of the menu
      Returns:
      reference to a JMenu which can be added to an existing menu or menu bar

      Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.

    • showSettings

      protected void showSettings(Frame parentFrame)
    • getDeepWhistleParameters

      public MaskedFFTParamters getDeepWhistleParameters()
    • getSettingsPane

      public DeepWhistleSettingsPane getSettingsPane()
      Get the settings pane.
      Returns:
      the settings pane.
    • showSettingsDialog

      public void showSettingsDialog(Frame parentFrame)
      Show settings dialog.
      Parameters:
      parentFrame - - the frame.
    • getParameters

      public MaskedFFTParamters getParameters()
      Specified by:
      getParameters in class MaskedFFTControl
    • setParameters

      public void setParameters(MaskedFFTParamters parameters)
      Specified by:
      setParameters in class MaskedFFTControl