Package com.edu.xmum.CST210.View.Styler
Class RunViewStyler
java.lang.Object
com.edu.xmum.CST210.View.Styler.RunViewStyler
Beautification of RunView based on Appearance Pattern Design.
Applies styles to various components based on the selected skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidStyles the main BorderPane based on the specified skin.static voidcontrolBoxStyle(Skin skin, javafx.scene.layout.HBox controlBox) Styles the control box based on the specified skin.static voiddifficultyTitleStyle(Skin skin, javafx.scene.control.Label currentDifficulty) Styles the difficulty title label based on the specified skin.static voidgameBoxStyle(Skin skin, javafx.scene.layout.StackPane gamePane) Styles the game box based on the specified skin.static voidhintButtonStyle(Skin skin, javafx.scene.control.Button hintButton) Styles the hint button based on the specified skin.static voidinfoBoxStyle(Skin skin, javafx.scene.layout.HBox infoBox) Styles the info box based on the specified skin.static voidresetButtonStyle(Skin skin, javafx.scene.control.Button resetButton) Styles the reset button based on the specified skin.
-
Constructor Details
-
RunViewStyler
public RunViewStyler()
-
-
Method Details
-
resetButtonStyle
Styles the reset button based on the specified skin.- Parameters:
skin- The skin to apply to the reset button.resetButton- The reset button to style.
-
hintButtonStyle
Styles the hint button based on the specified skin.- Parameters:
skin- The skin to apply to the hint button.hintButton- The hint button to style.
-
difficultyTitleStyle
Styles the difficulty title label based on the specified skin.- Parameters:
skin- The skin to apply to the difficulty title label.currentDifficulty- The difficulty title label to style.
-
infoBoxStyle
Styles the info box based on the specified skin.- Parameters:
skin- The skin to apply to the info box.infoBox- The info box to style.
-
controlBoxStyle
Styles the control box based on the specified skin.- Parameters:
skin- The skin to apply to the control box.controlBox- The control box to style.
-
gameBoxStyle
Styles the game box based on the specified skin.- Parameters:
skin- The skin to apply to the game box.gamePane- The game box to style.
-
BoxStyle
Styles the main BorderPane based on the specified skin.- Parameters:
skin- The skin to apply to the BorderPane.pane- The BorderPane to style.
-