Class AnnotationParametersDialog

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

public class AnnotationParametersDialog
extends JDialog
A simple dialog for setting the spectrum annotation preferences.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • AnnotationParametersDialog

      public AnnotationParametersDialog()
      Empty default constructor
    • AnnotationParametersDialog

      public AnnotationParametersDialog​(Frame parentFrame, AnnotationParameters annotationSettings, double maxFragmentIonAccuracy, HashSet<String> possibleNeutralLosses, ArrayList<Integer> reporterIons, boolean editable)
      Creates a new AnnotationPreferencesDialog with a frame as owner.
      Parameters:
      parentFrame - the parent frame
      annotationSettings - previous annotation settings
      maxFragmentIonAccuracy - the fragment ion accuracy used for the search
      possibleNeutralLosses - the list of possible neutral losses
      reporterIons - the list of possible reporter ions indexed by their subtypes
      editable - boolean indicating whether the settings can be edited by the user
    • AnnotationParametersDialog

      public AnnotationParametersDialog​(Dialog owner, Frame parentFrame, AnnotationParameters annotationSettings, double maxFragmentIonAccuracy, HashSet<String> possibleNeutralLosses, ArrayList<Integer> reporterIons, boolean editable)
      Creates a new AnnotationPreferencesDialog with a dialog as owner.
      Parameters:
      owner - the dialog owner
      parentFrame - the parent frame
      annotationSettings - previous annotation settings
      maxFragmentIonAccuracy - the fragment ion accuracy used for the search
      possibleNeutralLosses - the list of possible neutral losses
      reporterIons - the list of possible reporter ions indexed by their subtypes
      editable - boolean indicating whether the settings can be edited by the user
  • Method Details

    • isCanceled

      public boolean isCanceled()
      Indicates whether the user canceled the editing.
      Returns:
      a boolean indicating whether the user canceled the editing
    • getAnnotationSettings

      public AnnotationParameters getAnnotationSettings()
      Returns the annotation settings as set by the user.
      Returns:
      the annotation settings as set by the user