Class VictoryViewStyler

java.lang.Object
com.edu.xmum.CST210.View.Styler.VictoryViewStyler

public class VictoryViewStyler extends Object
Beautification of VictoryView based on Appearance Pattern Design. Applies styles to various components based on the selected skin.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    ButtonStyle(Skin skin, javafx.scene.control.Button button)
    Styles the button based on the specified skin.
    static void
    LabelStyle(Skin skin, javafx.scene.control.Label victoryLabel)
    Styles the victory label based on the specified skin.
    static void
    VboxStyle(Skin skin, javafx.scene.layout.VBox box)
    Styles the VBox based on the specified skin.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VictoryViewStyler

      public VictoryViewStyler()
  • Method Details

    • VboxStyle

      public static void VboxStyle(Skin skin, javafx.scene.layout.VBox box)
      Styles the VBox based on the specified skin.
      Parameters:
      skin - The skin to apply to the VBox.
      box - The VBox to style.
    • LabelStyle

      public static void LabelStyle(Skin skin, javafx.scene.control.Label victoryLabel)
      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

      public static void ButtonStyle(Skin skin, javafx.scene.control.Button button)
      Styles the button based on the specified skin.
      Parameters:
      skin - The skin to apply to the button.
      button - The button to style.