Package rocca

Class RoccaParametersDialog

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class RoccaParametersDialog extends PamDialog implements ActionListener, ItemListener
code copied from WorkshopParametersDialog.java
Author:
Michael Oswald
See Also:
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • showDialog

      public static RoccaParameters showDialog(Frame parentFrame, RoccaParameters roccaParameters, RoccaControl roccaControl)
    • enableTheCorrectSource

      public void enableTheCorrectSource()
      Enables/disables the FFT, Click Detector and Whistle and Moan sources based on the value found in the current roccaParameters object 2014/10/13 allow multiple sources. enable/disable source panels based on radio button selection
    • setParams

      public void setParams()
      sets up the labels to be shown in the dialog box, based on the current roccaParameters object
    • populateComboBox

      public void populateComboBox(JComboBox<String> list, String item)
      Adds the passed item to the passed combo box, but only if the item is not a duplicate SerialVersionUID=23 2016/01/04
      Parameters:
      list -
      item -
    • getClassifierDesc

      public String getClassifierDesc()
      Loads the classifier description and displays in the dialog. Note that prior to the introduction of 2-stage classifiers, model files did not contain descriptions. If this is the case, return a default string
      Returns:
      String containing the classifier description
    • getClassifierDesc

      public String getClassifierDesc(File classFile)
      Loads the classifier description and displays in the dialog. Note that prior to the introduction of 2-stage classifiers, model files did not contain descriptions. If this is the case, return a default string Overloaded method to make it work with both whistle and click classifier files serialVersionUID=24 2016/08/10 ...later that same rev... Commented out entire method - while it's nice to display a description of the classifier, it takes too long to load the classifier just for the sake of reading the string. Especially when the classifier could be >400Mb.
      Returns:
      String containing the classifier description
    • showClasses

      public void showClasses()
      Loads the stage 1 classifier and populates the drop-down box with the classes
    • getStage1Classes

      public String[] getStage1Classes()
    • cancelButtonPressed

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • getParams

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • restoreDefaultSettings

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Specified by:
      itemStateChanged in interface ItemListener