![]() |
SudokuFX
|
View class for the crash screen without business logic. More...
Inheritance diagram for fr.softsf.sudokufx.view.CrashScreenView:
Collaboration diagram for fr.softsf.sudokufx.view.CrashScreenView:Public Member Functions | |
| void | openingMainStage (ISplashScreenView iSplashScreenView) |
| Opens the main stage and handles the transition from splash screen to crash screen. | |
Static Public Attributes | |
| static final double | CRASHSCREEN_STAGE_RATIO = .8 |
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() |
| ISplashScreenView | iSplashScreenView |
| final Stage | primaryStage = new Stage() |
Static Private Attributes | |
| static final double | CRASHSCREEN_FONT_RATIO = 0.02 |
| static final double | CRASHSCREEN_SIZE_RATIO = 0.7 |
| static final double | FADE_IN_IN_SECONDS_AFTER_SPLASHSCREEN = 0.5 |
| static final IFileSystem | I_FILE_SYSTEM = new FileSystemManager() |
| static final IOsFolder | I_OS_FOLDER_FACTORY = new OsFoldersConfig().iOsFolderFactory() |
| static final Logger | LOG = LoggerFactory.getLogger(CrashScreenView.class) |
| static final double | SVG_STROKE_DIVISOR = 17.0 |
View class for the crash screen without business logic.
This class is responsible for displaying and managing the crash screen UI.
Line="200" is excluded from Checkstyle's LineLength check (see checkstyle-suppressions.xml).
|
private |
Handles the close button click event.
Logs the action and exits the application.
Here is the call graph for this function:
|
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 |
Here is the call graph for this function:
|
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.
Here is the call graph for this function:| 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.common.interfaces.IMainView.
Here is the call graph for this function:
|
private |
Handles the reset button click event.
Attempts to delete the application data directory and then exits the application.
Here is the call graph for this function:
|
private |
Sets up the SVG logo for the crash screen.
Here is the call graph for this function:
|
private |
Shows the crash screen stage.
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
staticprivate |