Class MainApp

java.lang.Object
javafx.application.Application
id.klacak.bus_navigator.MainApp

public class MainApp extends javafx.application.Application
JavaFX application entry point for the Bus Navigator route-finder interface.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the Bus Navigator JavaFX application.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Loads the application's custom fonts before creating the interface.
    static void
    main(String[] args)
    Launches the JavaFX application.
    void
    showView(String viewName)
    Loads a view, connects its controller, and displays it in the primary stage.
    void
    start(javafx.stage.Stage stage)
    Opens the main view in the primary application window.

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods inherited from class Object

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

    • MainApp

      public MainApp()
      Creates the Bus Navigator JavaFX application.
  • Method Details

    • init

      public void init() throws Exception
      Loads the application's custom fonts before creating the interface.
      Overrides:
      init in class javafx.application.Application
      Throws:
      Exception
    • start

      public void start(javafx.stage.Stage stage)
      Opens the main view in the primary application window.
      Specified by:
      start in class javafx.application.Application
    • showView

      public void showView(String viewName)
      Loads a view, connects its controller, and displays it in the primary stage.
    • main

      public static void main(String[] args)
      Launches the JavaFX application.
      Parameters:
      args - command-line arguments passed to JavaFX