Package ui.dialog

Class SpectrumOptionsDialog

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

public class SpectrumOptionsDialog extends JDialog
Dialog for configuring spectrum plot options. Allows selection of plot type (bar/curve), normalization, error bars display, and axis type (wavelength/frequency).
Version:
1.0
Author:
Spectrometer Control Software
See Also:
  • Constructor Details

    • SpectrumOptionsDialog

      public SpectrumOptionsDialog(JFrame parent)
      Constructs the spectrum options dialog.
      Parameters:
      parent - Parent frame
  • Method Details

    • isConfirmed

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

      public String getPlotType()
      Returns the selected plot type.
      Returns:
      "bar" for bar chart, "curve" for curve chart
    • isNormalize

      public boolean isNormalize()
      Returns whether normalization should be applied.
      Returns:
      true to normalize data to maximum, false otherwise
    • isShowErrorBars

      public boolean isShowErrorBars()
      Returns whether error bars should be shown.
      Returns:
      true to show error bars, false otherwise
    • isUseWavelength

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