Class ScreenUtils


  • public class ScreenUtils
    extends Object
    Helper-class for handling the stylesheet.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initializeStyle​(javafx.scene.layout.Pane pane)
      Default method to initialize style to the pane
      static void initializeStyle​(javafx.scene.layout.Pane pane, File tempStyle, File fileCss)
      Initializes a stylesheet by the css-file and apply it to the pane.
      static void initializeStyle​(javafx.scene.layout.Region region)
      Default method to initialize style to the region
      static void initializeStyle​(javafx.scene.layout.Region region, File tempStyle, File fileCss)
      Initializes a stylesheet by the css-file and apply it to the region
      static void initializeStyle​(javafx.scene.Scene scene)
      Default method to initialize style to the scene
      static void initializeStyle​(javafx.scene.Scene scene, File fileCss)
      Initializes a stylesheet by the css-file and apply it to the scene
      static void initializeStyle​(javafx.scene.Scene scene, File tempStyle, File fileCss)
      Initializes a stylesheet by the css-file or if exists from the tempStyle (testing) and apply it to the gui.
      So more priority has the tempStyle parameter if set!
    • Method Detail

      • initializeStyle

        public static void initializeStyle​(javafx.scene.layout.Pane pane)
        Default method to initialize style to the pane
        Parameters:
        pane -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.layout.Region region)
        Default method to initialize style to the region
        Parameters:
        region -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.Scene scene)
        Default method to initialize style to the scene
        Parameters:
        scene -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.Scene scene,
                                           File tempStyle,
                                           File fileCss)
        Initializes a stylesheet by the css-file or if exists from the tempStyle (testing) and apply it to the gui.
        So more priority has the tempStyle parameter if set!
        Parameters:
        fileCss -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.Scene scene,
                                           File fileCss)
        Initializes a stylesheet by the css-file and apply it to the scene
        Parameters:
        fileCss -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.layout.Region region,
                                           File tempStyle,
                                           File fileCss)
        Initializes a stylesheet by the css-file and apply it to the region
        Parameters:
        fileCss -
      • initializeStyle

        public static void initializeStyle​(javafx.scene.layout.Pane pane,
                                           File tempStyle,
                                           File fileCss)
        Initializes a stylesheet by the css-file and apply it to the pane.
        Parameters:
        fileCss -