Class LikelihoodDetectionParametersDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class LikelihoodDetectionParametersDialog extends PamDialog
The class LikelihoodDetectionParametersDialog is created by the LikelihoodDetectionUnit to integrate configuration of the likelihood detection module into the configuration menus of PamGuard.
See Also:
  • Field Details

    • accepted

      public boolean accepted
      The accepted state of the dialog (i.e., whether OK has been selected).
  • Method Details

    • showDialog

      public static LikelihoodDetectionParameters showDialog(Frame parentFrame, LikelihoodDetectionParameters likelihoodParameters)
      Show dialog the dialog.
      Parameters:
      parentFrame - the parent frame
      likelihoodParameters - the likelihood parameters
      Returns:
      the likelihood detection parameters
    • setParams

      public void setParams(LikelihoodDetectionParameters likelihoodParameters)
      Populate the dialog with the values from the persistent parameters.
      Parameters:
      likelihoodParameters - the new params
    • 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