Class OpenPatricianApplication

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.display.IOpenPatricianApplicationWindow, ch.sahits.game.openpatrician.display.SceneChangeable

    @SpringBootApplication
    @Import(ch.sahits.game.openpatrician.display.StandaloneConfiguration.class)
    public class OpenPatricianApplication
    extends javafx.application.Application
    implements ch.sahits.game.openpatrician.display.IOpenPatricianApplicationWindow
    Spring boot application starting the JavaFX UI.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on Mar 23, 2018
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.application.Application

        javafx.application.Application.Parameters
    • Field Summary

      • Fields inherited from class javafx.application.Application

        STYLESHEET_CASPIAN, STYLESHEET_MODENA
      • Fields inherited from interface ch.sahits.game.openpatrician.display.IOpenPatricianApplicationWindow

        MIN_HEIGHT, MIN_WIDTH
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changeScene​(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene)  
      double getSceneHeight()  
      double getSceneWidth()  
      void init()  
      static void main​(java.lang.String[] args)  
      void start​(javafx.stage.Stage primaryStage)  
      void stop()  
      void updateFullscreenMode()
      Toggle between full screen and non full screen mode.
      • Methods inherited from class javafx.application.Application

        getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenPatricianApplication

        public OpenPatricianApplication()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • init

        public void init()
        Overrides:
        init in class javafx.application.Application
      • start

        public void start​(javafx.stage.Stage primaryStage)
        Specified by:
        start in class javafx.application.Application
      • changeScene

        public void changeScene​(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene)
        Specified by:
        changeScene in interface ch.sahits.game.openpatrician.display.SceneChangeable
        See Also:
        SceneChangeable.changeScene(OpenPatricianScene)
      • updateFullscreenMode

        public void updateFullscreenMode()
        Toggle between full screen and non full screen mode.
      • getSceneWidth

        public double getSceneWidth()
        Specified by:
        getSceneWidth in interface ch.sahits.game.openpatrician.display.SceneChangeable
      • getSceneHeight

        public double getSceneHeight()
        Specified by:
        getSceneHeight in interface ch.sahits.game.openpatrician.display.SceneChangeable
      • stop

        public void stop()
                  throws java.lang.Exception
        Overrides:
        stop in class javafx.application.Application
        Throws:
        java.lang.Exception