Class RunViewStyler

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

public class RunViewStyler extends Object
Beautification of RunView 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
    BoxStyle(Skin skin, javafx.scene.layout.BorderPane pane)
    Styles the main BorderPane based on the specified skin.
    static void
    controlBoxStyle(Skin skin, javafx.scene.layout.HBox controlBox)
    Styles the control box based on the specified skin.
    static void
    difficultyTitleStyle(Skin skin, javafx.scene.control.Label currentDifficulty)
    Styles the difficulty title label based on the specified skin.
    static void
    gameBoxStyle(Skin skin, javafx.scene.layout.StackPane gamePane)
    Styles the game box based on the specified skin.
    static void
    hintButtonStyle(Skin skin, javafx.scene.control.Button hintButton)
    Styles the hint button based on the specified skin.
    static void
    infoBoxStyle(Skin skin, javafx.scene.layout.HBox infoBox)
    Styles the info box based on the specified skin.
    static void
    resetButtonStyle(Skin skin, javafx.scene.control.Button resetButton)
    Styles the reset button based on the specified skin.

    Methods inherited from class java.lang.Object

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

    • RunViewStyler

      public RunViewStyler()
  • Method Details

    • resetButtonStyle

      public static void resetButtonStyle(Skin skin, javafx.scene.control.Button resetButton)
      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

      public static void hintButtonStyle(Skin skin, javafx.scene.control.Button hintButton)
      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

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

      public static void infoBoxStyle(Skin skin, javafx.scene.layout.HBox infoBox)
      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

      public static void controlBoxStyle(Skin skin, javafx.scene.layout.HBox controlBox)
      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

      public static void gameBoxStyle(Skin skin, javafx.scene.layout.StackPane gamePane)
      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

      public static void BoxStyle(Skin skin, javafx.scene.layout.BorderPane pane)
      Styles the main BorderPane based on the specified skin.
      Parameters:
      skin - The skin to apply to the BorderPane.
      pane - The BorderPane to style.