java.lang.Object
javafx.application.Application
edu.ntnu.idatt2001.paths.views.App

public class App extends javafx.application.Application
The class App which starts the application window.
Version:
0.2 - 22.04.2021
Author:
Carl G.
  • 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
    App()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    changeRootPane(javafx.scene.layout.Pane pane)
    Set the scene of the application
    static javafx.stage.Stage
    Get the stage of the application
    static void
    main(String[] args)
    The entry point of application.
    void
    start(javafx.stage.Stage startStage)
    Show the first stage of the application

    Methods inherited from class javafx.application.Application

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

    Methods inherited from class java.lang.Object

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

    • App

      public App()
  • Method Details

    • main

      public static void main(String[] args)
      The entry point of application.
      Parameters:
      args - the input arguments
    • start

      public void start(javafx.stage.Stage startStage) throws Exception
      Show the first stage of the application
      Specified by:
      start in class javafx.application.Application
      Parameters:
      startStage - stage to add the first scene to
      Throws:
      Exception - thrown if application window could not be opened.
    • getStage

      public static javafx.stage.Stage getStage()
      Get the stage of the application
      Returns:
      Stage - the application stage
    • changeRootPane

      public static void changeRootPane(javafx.scene.layout.Pane pane)
      Set the scene of the application
      Parameters:
      pane - Pane - the pane to set as the scene