Package com.edu.xmum.CST210.View.Styler
Class VictoryViewStyler
java.lang.Object
com.edu.xmum.CST210.View.Styler.VictoryViewStyler
Beautification of VictoryView based on Appearance Pattern Design.
Applies styles to various components based on the selected skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidButtonStyle(Skin skin, javafx.scene.control.Button button) Styles the button based on the specified skin.static voidLabelStyle(Skin skin, javafx.scene.control.Label victoryLabel) Styles the victory label based on the specified skin.static voidStyles the VBox based on the specified skin.
-
Constructor Details
-
VictoryViewStyler
public VictoryViewStyler()
-
-
Method Details
-
VboxStyle
Styles the VBox based on the specified skin.- Parameters:
skin- The skin to apply to the VBox.box- The VBox to style.
-
LabelStyle
Styles the victory label based on the specified skin.- Parameters:
skin- The skin to apply to the victory label.victoryLabel- The victory label to style.
-
ButtonStyle
Styles the button based on the specified skin.- Parameters:
skin- The skin to apply to the button.button- The button to style.
-