SudokuFX
|
View class for the crash screen without business logic. More...
Public Member Functions | |
void | openingMainStage (ISplashScreenView iSplashScreenView) |
Opens the main stage and handles the transition from splash screen to crash screen. | |
Public Member Functions inherited from fr.softsf.sudokufx.SudoMain.IPrimaryStageView |
Private Member Functions | |
void | closeButtonClick () |
Handles the close button click event. | |
void | createSVG (final Region region, final String path, final double width, final double height, final double offsetX, final double offsetY) |
Creates an SVG shape and applies it to a Region. | |
void | fadeIn (final Node node) |
Applies a fade-in effect to the given node. | |
void | hidecrashscreen () |
Hides and closes the crash screen stage. | |
void | initialize () |
Initializes the crash screen components. | |
void | resetButtonClick () |
Handles the reset button click event. | |
void | setCrashscreenvboxTophboxLogosudosvg () |
Sets up the SVG logo for the crash screen. | |
void | showcrashscreen () |
Shows the crash screen stage. | |
Private Attributes | |
Button | buttonClose |
Button | buttonReset |
double | crashScreenFontSize |
final Stage | crashscreenStage = new Stage() |
VBox | crashscreenvbox |
Label | crashscreenvboxBottomhboxVersionlabel |
Label | crashscreenvboxBottomhboxYearlabel |
HBox | crashscreenvboxCenterhboxHbox |
Label | crashscreenvboxCenterhboxLabel |
Label | crashscreenvboxCenterhboxLabel2 |
Label | crashscreenvboxTophboxNamelabel |
Region | crashscreenvboxTophboxRegionsudosvg |
final DropShadow | dropShadow = new DropShadow() |
final Stage | primaryStage = new Stage() |
Static Private Attributes | |
static final double | FADE_IN_IN_SECONDS_AFTER_SPLASHSCREEN = 0.5 |
static final IOsFolderFactory | iOsFolderFactory = new OsFolderFactoryManager().osFolderFactory() |
View class for the crash screen without business logic.
This class is responsible for displaying and managing the crash screen UI.
|
private |
Handles the close button click event.
Logs the action and exits the application.
|
private |
Creates an SVG shape and applies it to a Region.
region | The Region to apply the SVG shape to |
path | The SVG path data |
width | The width of the SVG |
height | The height of the SVG |
offsetX | The X offset of the SVG |
offsetY | The Y offset of the SVG |
|
private |
Applies a fade-in effect to the given node.
node | The node to apply the fade-in effect to |
|
private |
Hides and closes the crash screen stage.
|
private |
Initializes the crash screen components.
This method is automatically called by JavaFX after loading the FXML.
void fr.softsf.sudokufx.view.CrashScreenView.openingMainStage | ( | ISplashScreenView | iSplashScreenView | ) |
Opens the main stage and handles the transition from splash screen to crash screen.
iSplashScreenView | The splash screen view interface |
Implements fr.softsf.sudokufx.SudoMain.IPrimaryStageView.
|
private |
Handles the reset button click event.
Attempts to delete the application data directory and then exits the application.
|
private |
Sets up the SVG logo for the crash screen.
|
private |
Shows the crash screen stage.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |