View class for the splash screen of the Sudoku application. More...
Public Member Functions | |
| SplashScreenView (final Stage splashScreenStageP) | |
| Constructor for SplashScreenView. | |
| Scene | getSplashScreenScene () |
| Returns the JavaFX scene used by the splash screen. | |
| void | hideSplashScreen () |
| Hides and closes the splash screen. | |
| void | showSplashScreen () |
| Displays the splash screen. | |
Private Member Functions | |
| void | animateFlowerSvg () |
| Animates the SVG flower. | |
| 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 | fxmlLikeStructure () |
| Sets up the basic structure and properties of the UI components, similar to what would be defined in an FXML file. | |
| String | getLoadingOrOptimizingMessage () |
| Retrieves a message indicating the current loading or optimizing state. | |
| void | nestingOfNodes () |
| Nests the UI components in their parent containers. | |
| void | nodesConfiguration () |
| Configures the properties and styles of the UI nodes. | |
| void | setSplashscreenvboxCenterhboxLogosoft64textsvg () |
| Sets up the SVG for the Soft64 text logo in the center of the splash screen. | |
| void | setSplashscreenvboxCenterhboxStackpaneLogoflowersvg () |
| Sets up the SVG for the flower logo in the center of the splash screen. | |
| void | setSplashscreenvboxTophboxLogosudosvg () |
| Sets up the SVG for the "sudo.svg" text logo in the center of the splash screen. | |
Private Attributes | |
| final DropShadow | dropShadow = new DropShadow() |
| Scene | scene |
| double | splashScreenFontSize |
| final Stage | splashScreenStage |
| final VBox | splashscreenvbox = new VBox() |
| final HBox | splashscreenvboxbottomhbox = new HBox() |
| final HBox | splashscreenvboxbottomhboxhbox = new HBox() |
| final Label | splashscreenvboxBottomhboxHboxLoaderlabel = new Label() |
| final Label | splashscreenvboxBottomhboxVersionlabel = new Label() |
| final Label | splashscreenvboxBottomhboxYearlabel = new Label() |
| final HBox | splashscreenvboxCenterhbox = new HBox() |
| final Region | splashscreenvboxCenterhboxRegionflowersvg = new Region() |
| final Region | splashscreenvboxCenterhboxRegiontextsvg = new Region() |
| final HBox | splashScreenvboxtophbox = new HBox() |
| final Label | splashscreenvboxTophboxNamelabel = new Label() |
| final Pane | splashScreenvboxtophboxpane = new Pane() |
| final Region | splashscreenvboxTophboxRegionsudosvg = new Region() |
Static Private Attributes | |
| static final double | DROP_SHADOW_OFFSET_DIVISOR = 8.0 |
| static final double | DROP_SHADOW_RADIUS_DIVISOR = 2.0 |
| static final double | FLOWER_SVG_SCALE_FACTOR = 5.474 |
| static final double | FONT_SIZE_FACTOR = 0.0219 |
| static final double | INTERPOLATOR_CONTROL_X1 = 0.5 |
| static final double | INTERPOLATOR_CONTROL_X2 = 0.5 |
| static final double | INTERPOLATOR_CONTROL_Y1 = 0.0 |
| static final double | INTERPOLATOR_CONTROL_Y2 = 1.0 |
| static final double | ROTATE_FROM_ANGLE = -4.0 |
| static final double | ROTATE_TO_ANGLE = 4.0 |
| static final double | SOFT64_SVG_HEIGHT_SCALE = 2.0 |
| static final double | SOFT64_SVG_WIDTH_SCALE = 14.23 |
| static final double | SPLASHSCREEN_HEIGHT_FACTOR = 0.3 |
| static final String | SPLASHSCREEN_LABEL = "splashscreen-label" |
| static final double | SPLASHSCREEN_WIDTH_FACTOR = 0.612 |
| static final double | STROKE_DIVISOR_FOR_SUDOSVG = 17 |
| static final String | STYLE_CSS |
View class for the splash screen of the Sudoku application.
This class is responsible for creating and managing the splash screen UI.
Some lines are excluded from Checkstyle's LineLength check (see checkstyle-suppressions.xml).
| fr.softsf.sudokufx.view.SplashScreenView.SplashScreenView | ( | final Stage | splashScreenStageP | ) |
Constructor for SplashScreenView.
Initializes the splash screen UI and displays it.
| splashScreenStageP | The Stage to use for the splash screen |
|
private |
Animates the SVG flower.
|
private |
Creates an SVG shape and applies it to a Region.
| region | The Region to which the SVG shape will be applied |
| 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 |
Sets up the basic structure and properties of the UI components, similar to what would be defined in an FXML file.
|
private |
Retrieves a message indicating the current loading or optimizing state.
The message returned depends on whether the Spring context is set to exit on refresh.
| Scene fr.softsf.sudokufx.view.SplashScreenView.getSplashScreenScene | ( | ) |
Returns the JavaFX scene used by the splash screen.
Implements fr.softsf.sudokufx.common.interfaces.ISplashScreenView.
| void fr.softsf.sudokufx.view.SplashScreenView.hideSplashScreen | ( | ) |
Hides and closes the splash screen.
Implements fr.softsf.sudokufx.common.interfaces.ISplashScreenView.
|
private |
Nests the UI components in their parent containers.
|
private |
Configures the properties and styles of the UI nodes.
|
private |
Sets up the SVG for the Soft64 text logo in the center of the splash screen.
|
private |
Sets up the SVG for the flower logo in the center of the splash screen.
|
private |
Sets up the SVG for the "sudo.svg" text logo in the center of the splash screen.
| void fr.softsf.sudokufx.view.SplashScreenView.showSplashScreen | ( | ) |
Displays the splash screen.
Implements fr.softsf.sudokufx.common.interfaces.ISplashScreenView.
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |