java.lang.Object
javafx.application.Application
edu.ntnu.idatt1002.k1g4.client.App

public class App extends javafx.application.Application
Main GUI application client. Class with the 'main' method
Version:
0.6
Author:
Carl Gützkow, Nicolai H. Brand
  • 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 int
    Returns the height that a window should have.
    static int
    Returns the width that a window should have.
    static javafx.stage.Stage
    Returns the startStage to use other places
    static void
    main(String[] args)
    main method of the program.
    void
    start(javafx.stage.Stage startStage)
    Method for creating a stage and the first scene.

    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

    • start

      public void start(javafx.stage.Stage startStage)
      Method for creating a stage and the first scene. Also sets title and logo.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      startStage - Stage: the stage provided by Application
    • main

      public static void main(String[] args)
      main method of the program. Called when javafx:run is run
      Parameters:
      args - String[] String, arguments from command
    • getDefaultWidth

      public static int getDefaultWidth()
      Returns the width that a window should have. This should be used for all scenes.
      Returns:
      DEFAULT_WIDTH width of the window
    • getDefaultHeight

      public static int getDefaultHeight()
      Returns the height that a window should have. This should be used for all scenes.
      Returns:
      DEFAULT_HEIGHT height of the window
    • getStage

      public static javafx.stage.Stage getStage()
      Returns the startStage to use other places
      Returns:
      stage - the stage provided by javaFX