Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbsorptionOptionsDialog - Class in ui.dialog
-
Dialog for configuring absorption plot options.
- AbsorptionOptionsDialog(JFrame, List<String>) - Constructor for class ui.dialog.AbsorptionOptionsDialog
-
Constructs the absorption options dialog.
- addMeasurement(double[]) - Method in class core.MeasurementSet
-
Adds a single measurement (spectrum) to the set.
- app - package app
B
- BAR - Enum constant in enum class core.Visualizer.PlotType
-
Bar chart (categorical).
C
- centerPanel - Variable in class ui.MainWindow
-
Center panel containing visualizations.
- clear() - Method in class core.MeasurementSet
-
Clears all measurements, parameters, and name.
- close() - Method in class core.Spectrometer
-
Close serial port connection.
- configure(int, int, int, String, int, int) - Method in class core.Spectrometer
-
Configure measurement parameters.
- ConfigureDialog - Class in ui.dialog
-
Dialog for configuring spectrometer measurement parameters.
- ConfigureDialog(JFrame, Map<String, Object>) - Constructor for class ui.dialog.ConfigureDialog
-
Constructs the configuration dialog.
- core - package core
- createAbsorptionChart(MeasurementSet, MeasurementSet) - Method in class core.Visualizer
-
Create absorption chart comparing reference and sample.
- createBarChart() - Method in class core.Visualizer
-
Create bar chart for current measurement set.
- CreateCenterPanel - Class in ui.panel
-
Center panel of the main window, responsible for displaying visualizations such as spectrum plots and absorption charts.
- CreateCenterPanel(MainWindow) - Constructor for class ui.panel.CreateCenterPanel
-
Constructs the center panel with a placeholder.
- createCurveChart() - Method in class core.Visualizer
-
Create curve chart for current measurement set.
- CreateFileMenu - Class in ui.menu
-
File menu providing load, save, and exit functionality.
- CreateFileMenu(CreateMenuBar) - Constructor for class ui.menu.CreateFileMenu
-
Constructs the File menu with its menu items.
- CreateLeftPanel - Class in ui.panel
-
Left panel of the main window containing the list of measurements.
- CreateLeftPanel(MainWindow) - Constructor for class ui.panel.CreateLeftPanel
-
Constructs the left panel with the measurement list.
- CreateMeasurementMenu - Class in ui.menu
-
Measurement menu providing spectrometer connection, configuration, and data acquisition functionality.
- CreateMeasurementMenu(CreateMenuBar) - Constructor for class ui.menu.CreateMeasurementMenu
-
Constructs the Measurement menu with its menu items.
- CreateMenuBar - Class in ui.menu
-
Main menu bar for the application.
- CreateMenuBar(MainWindow) - Constructor for class ui.menu.CreateMenuBar
-
Constructs the menu bar with all sub-menus.
- CreateViewMenu - Class in ui.menu
-
View menu providing spectrum and absorption plot visualization.
- CreateViewMenu(CreateMenuBar) - Constructor for class ui.menu.CreateViewMenu
-
Constructs the View menu with its menu items.
- CURVE - Enum constant in enum class core.Visualizer.PlotType
-
Curve/line chart.
D
- DialogUtils - Class in ui.dialog
-
Utility class for displaying common dialog boxes.
- DialogUtils() - Constructor for class ui.dialog.DialogUtils
F
- FREQUENCY - Enum constant in enum class core.Visualizer.AxisType
-
Frequency axis in Terahertz (THz).
G
- getAverageAndStd() - Method in class core.MeasurementSet
-
Calculate mean and standard deviation across all measurements.
- getMeasurements() - Method in class core.MeasurementSet
-
Returns an unmodifiable list of all measurements.
- getMeasurementSet() - Method in class core.Spectrometer
-
Gets the current measurement set.
- getName() - Method in class core.MeasurementSet
-
Gets the name of this measurement set.
- getParameters() - Method in class core.MeasurementSet
-
Gets a copy of the measurement parameters.
- getParameters() - Method in class ui.dialog.ConfigureDialog
-
Returns the parameter values entered by the user.
- getPlotType() - Method in class ui.dialog.SpectrumOptionsDialog
-
Returns the selected plot type.
- getPortName() - Method in class core.Spectrometer
-
Gets the serial port name.
- getReferenceName() - Method in class ui.dialog.AbsorptionOptionsDialog
-
Returns the name of the selected reference measurement.
- getSampleName() - Method in class ui.dialog.AbsorptionOptionsDialog
-
Returns the name of the selected sample measurement.
- getStatisticsString() - Method in class core.MeasurementSet
-
Get formatted statistics as string.
H
- handleError(JFrame, String, Exception) - Static method in class ui.dialog.DialogUtils
-
Handles an exception by printing the stack trace and showing an error dialog.
I
- isConfirmed() - Method in class ui.dialog.AbsorptionOptionsDialog
-
Returns whether the user confirmed the dialog (clicked OK).
- isConfirmed() - Method in class ui.dialog.ConfigureDialog
-
Returns whether the user confirmed the dialog (clicked OK).
- isConfirmed() - Method in class ui.dialog.SpectrumOptionsDialog
-
Returns whether the user confirmed the dialog (clicked OK).
- isEmpty() - Method in class core.MeasurementSet
-
Checks if the measurement set is empty.
- isNormalize() - Method in class ui.dialog.SpectrumOptionsDialog
-
Returns whether normalization should be applied.
- isShowErrorBars() - Method in class ui.dialog.SpectrumOptionsDialog
-
Returns whether error bars should be shown.
- isUseWavelength() - Method in class ui.dialog.AbsorptionOptionsDialog
-
Returns whether the wavelength axis should be used.
- isUseWavelength() - Method in class ui.dialog.SpectrumOptionsDialog
-
Returns whether the wavelength axis should be used.
L
- LEFT_PANEL_WIDTH - Static variable in class ui.MainWindow
-
Width of the left panel (measurement list) in pixels.
- leftPanel - Variable in class ui.MainWindow
-
Left panel containing the measurement list.
- loadFromFile(String) - Static method in class core.MeasurementSet
-
Load measurement set from a JSON file.
M
- main(String[]) - Static method in class app.Main
-
The main method that serves as the entry point for the application.
- Main - Class in app
-
Main application entry point.
- Main() - Constructor for class app.Main
- mainWindow - Variable in class ui.menu.CreateMenuBar
-
Reference to the main window.
- mainWindow - Variable in class ui.panel.CreateCenterPanel
-
Reference to the main window for accessing shared data.
- mainWindow - Variable in class ui.panel.CreateLeftPanel
-
Reference to the main window for accessing shared data.
- MainWindow - Class in ui
-
Main application window for the Spectrometer Control Software.
- MainWindow() - Constructor for class ui.MainWindow
-
Constructs the main window and initializes all UI components.
- mean - Variable in class core.MeasurementSet.StatisticsResult
-
Mean values for each channel.
- measure(String) - Method in class core.Spectrometer
-
Perform measurement with current configuration.
- measurementList - Variable in class ui.MainWindow
-
JList component displaying measurement names.
- measurementListModel - Variable in class ui.MainWindow
-
List model for the measurement list.
- MeasurementSet - Class in core
-
Container for measurement data with metadata.
- MeasurementSet() - Constructor for class core.MeasurementSet
-
Constructs an empty MeasurementSet.
- MeasurementSet.StatisticsResult - Class in core
-
Container for statistical results (mean and standard deviation).
- measurementSets - Variable in class ui.MainWindow
-
Map of measurement names to their corresponding MeasurementSet objects.
- menuBar - Variable in class ui.MainWindow
-
Application menu bar.
O
- onDisconnected() - Method in interface core.Spectrometer.ConnectionListener
-
Called when the serial port is disconnected.
S
- saveToFile(String) - Method in class core.MeasurementSet
-
Save measurement set to a JSON file.
- setAxisType(Visualizer.AxisType) - Method in class core.Visualizer
-
Sets the axis type.
- setName(String) - Method in class core.MeasurementSet
-
Sets the name of this measurement set.
- setNormalize(boolean) - Method in class core.Visualizer
-
Sets whether to normalize data to maximum value.
- setParameters(Map<String, Object>) - Method in class core.MeasurementSet
-
Sets the measurement parameters.
- setPlotType(Visualizer.PlotType) - Method in class core.Visualizer
-
Sets the plot type.
- setPlotType(String) - Method in class core.Visualizer
-
Sets the plot type from a string.
- setShowErrorBars(boolean) - Method in class core.Visualizer
-
Sets whether to show error bars.
- showErrorDialog(JFrame, String, String) - Static method in class ui.dialog.DialogUtils
-
Displays an error dialog with the specified title and message.
- showInfoDialog(JFrame, String, String) - Static method in class ui.dialog.DialogUtils
-
Displays an information dialog with the specified title and message.
- size() - Method in class core.MeasurementSet
-
Returns the number of measurements stored.
- spectrometer - Variable in class ui.MainWindow
-
Spectrometer hardware controller instance.
- Spectrometer - Class in core
-
Main controller class for spectrometer hardware communication.
- Spectrometer(Spectrometer.ConnectionListener) - Constructor for class core.Spectrometer
-
Constructor - establishes connection with Arduino/spectrometer.
- Spectrometer.ConnectionListener - Interface in core
-
Listener interface for connection events.
- SpectrumOptionsDialog - Class in ui.dialog
-
Dialog for configuring spectrum plot options.
- SpectrumOptionsDialog(JFrame) - Constructor for class ui.dialog.SpectrumOptionsDialog
-
Constructs the spectrum options dialog.
- StatisticsResult(double[], double[]) - Constructor for class core.MeasurementSet.StatisticsResult
-
Constructs a StatisticsResult.
- std - Variable in class core.MeasurementSet.StatisticsResult
-
Standard deviation values for each channel.
T
- toString() - Method in class core.MeasurementSet
-
Returns a formatted string representation of the measurement set.
U
- ui - package ui
- ui.dialog - package ui.dialog
- ui.menu - package ui.menu
- ui.panel - package ui.panel
- useWavelengthAxis(boolean) - Method in class core.Visualizer
-
Convenience method to set wavelength/frequency axis.
V
- valueOf(String) - Static method in enum class core.Visualizer.AxisType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class core.Visualizer.PlotType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class core.Visualizer.AxisType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class core.Visualizer.PlotType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Visualizer - Class in core
-
Handles visualization of spectrometer data.
- Visualizer(MeasurementSet) - Constructor for class core.Visualizer
-
Constructs a Visualizer for the given measurement set.
- Visualizer.AxisType - Enum Class in core
-
Enumeration of axis types for the x-axis.
- Visualizer.PlotType - Enum Class in core
-
Enumeration of plot types.
W
- WAVELENGTH - Enum constant in enum class core.Visualizer.AxisType
-
Wavelength axis in nanometers (nm).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form