Package ui.dialog

Class AbsorptionOptionsDialog

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

public class AbsorptionOptionsDialog extends JDialog
Dialog for configuring absorption plot options. Allows selection of reference and sample measurements and axis type.
Version:
1.0
Author:
Spectrometer Control Software
See Also:
  • Constructor Details

    • AbsorptionOptionsDialog

      public AbsorptionOptionsDialog(JFrame parent, List<String> measurementNames)
      Constructs the absorption options dialog.
      Parameters:
      parent - Parent frame
      measurementNames - List of available measurement names
  • Method Details

    • isConfirmed

      public boolean isConfirmed()
      Returns whether the user confirmed the dialog (clicked OK).
      Returns:
      true if OK was clicked, false otherwise
    • getReferenceName

      public String getReferenceName()
      Returns the name of the selected reference measurement.
      Returns:
      the reference measurement name, or null if none selected
    • getSampleName

      public String getSampleName()
      Returns the name of the selected sample measurement.
      Returns:
      the sample measurement name, or null if none selected
    • isUseWavelength

      public boolean isUseWavelength()
      Returns whether the wavelength axis should be used.
      Returns:
      true for wavelength axis, false for frequency axis