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 -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the height that a window should have.static intReturns the width that a window should have.static javafx.stage.StagegetStage()Returns the startStage to use other placesstatic voidmain method of the program.voidstart(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
-
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:
startin classjavafx.application.Application- Parameters:
startStage- Stage: the stage provided by Application
-
main
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
-