Class DirecTagParametersDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.compomics.util.gui.parameters.identification.algorithm.DirecTagParametersDialog
All Implemented Interfaces:
AlgorithmParametersDialog, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DirecTagParametersDialog extends JDialog implements AlgorithmParametersDialog
Dialog for editing the DirecTag advanced settings.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • DirecTagParametersDialog

      public DirecTagParametersDialog()
      Empty default constructor
    • DirecTagParametersDialog

      public DirecTagParametersDialog(Frame parent, DirecTagParameters direcTagParameters, boolean editable)
      Creates a new DirecTagSettingsDialog with a frame as owner.
      Parameters:
      parent - the parent frame
      direcTagParameters - the DirecTag parameters
      editable - boolean indicating whether the settings can be edited by the user
    • DirecTagParametersDialog

      public DirecTagParametersDialog(Dialog owner, Frame parent, DirecTagParameters direcTagParameters, boolean editable)
      Creates a new DirecTagSettingsDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parent - the parent frame
      direcTagParameters - the DirecTag parameters
      editable - boolean indicating whether the settings can be edited by the user
  • Method Details

    • validateParametersInput

      public boolean validateParametersInput(boolean showMessage)
      Inspects the parameters validity.
      Parameters:
      showMessage - if true an error messages are shown to the users
      Returns:
      a boolean indicating if the parameters are valid
    • getInput

      public DirecTagParameters getInput()
      Returns the DirecTag parameters as set by the user.
      Returns:
      the DirecTag parameters
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: AlgorithmParametersDialog
      Indicates whether the user canceled the editing.
      Specified by:
      isCancelled in interface AlgorithmParametersDialog
      Returns:
      true if cancel was pressed
    • getParameters

      public IdentificationAlgorithmParameter getParameters()
      Description copied from interface: AlgorithmParametersDialog
      Returns the parameters as set by the user.
      Specified by:
      getParameters in interface AlgorithmParametersDialog
      Returns:
      the parameters as set by the user