java.lang.Object
javafx.application.Application
pl.polsl.rtsa.App
public class App
extends javafx.application.Application
JavaFX application entry point for the JSignalAnalysis real-time FFT
analyzer.
Loads the FXML-based UI, applies the dark theme stylesheet, and manages the application lifecycle (start → stop → JVM exit).
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MainControllerReference to the main UI controller for lifecycle management.private static javafx.scene.SceneThe primary scene shared across the application.Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidApplication entry point — delegates to.invalid reference
Application#launch()voidstart(javafx.stage.Stage stage) Initialises the primary stage with the FXML layout and dark theme.voidstop()Gracefully shuts down the controller and forces JVM exit.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet
-
Field Details
-
scene
private static javafx.scene.Scene sceneThe primary scene shared across the application. -
controller
Reference to the main UI controller for lifecycle management.
-
-
Constructor Details
-
App
public App()
-
-
Method Details
-
start
Initialises the primary stage with the FXML layout and dark theme.- Specified by:
startin classjavafx.application.Application- Parameters:
stage- the primary stage provided by the JavaFX runtime- Throws:
IOException- if the FXML resource cannot be loaded
-
stop
public void stop()Gracefully shuts down the controller and forces JVM exit.System.exit(0)is required because jSerialComm may leave non-daemon native threads alive after the JavaFX stage is closed.- Overrides:
stopin classjavafx.application.Application
-
main
Application entry point — delegates to.invalid reference
Application#launch()- Parameters:
args- command-line arguments (not used)
-