SudokuFX
|
View class for the splash screen of the Sudoku application. More...
Public Member Functions | |
SplashScreenView (final Stage splashScreenStageP) | |
Constructor for SplashScreenView. | |
void | hideSplashScreen () |
Hides and closes the splash screen. | |
void | showSplashScreen () |
Displays the splash screen. | |
Public Member Functions inherited from fr.softsf.sudokufx.interfaces.ISplashScreenView |
Static Public Attributes | |
static final String | FX_FONT_SIZE_0_8_EM = "-fx-font-size: 0.8em;" |
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 Sudoku logo in the top section 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() |
View class for the splash screen of the Sudoku application.
This class is responsible for creating and managing the splash screen UI.
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.
void fr.softsf.sudokufx.view.SplashScreenView.hideSplashScreen | ( | ) |
Hides and closes the splash screen.
Implements fr.softsf.sudokufx.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 Sudoku logo in the top section of the splash screen.
void fr.softsf.sudokufx.view.SplashScreenView.showSplashScreen | ( | ) |
Displays the splash screen.
Implements fr.softsf.sudokufx.interfaces.ISplashScreenView.
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |