public final class OpenPaticianApplicationWindow extends javafx.application.Application implements SceneChangeable
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
context |
private boolean |
fullscreen |
private ch.sahits.game.openpatrician.util.GamePropertyUtility |
gamePropertyUtility |
private int |
height |
private static OpenPaticianApplicationWindow |
instance |
private AggregateEventHandler<javafx.scene.input.KeyEvent> |
keyEventHandlerAggregate |
private org.apache.log4j.Logger |
logger |
private int |
minHeight |
private int |
minWidth |
private MouseClickLocationEventHandler |
mouseClickEventHandler |
private javafx.stage.Stage |
primaryStage |
private int |
width |
| Constructor and Description |
|---|
OpenPaticianApplicationWindow()
Constructor required by the supper class to create an instance of the application.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeScene(OpenPatricianScene scene)
Change the scene of the application
|
static SceneChangeable |
getApplication() |
double |
getSceneHeight()
Retrieve the height of the current scene.
|
double |
getSceneWidth()
Retrieve the width of the current scene.
|
void |
start(javafx.stage.Stage primaryStage) |
static void |
startClientUI(String[] args)
Starting point of the client side application thread.
|
void |
stop() |
private void |
stopUIApplicationContext()
Closing the application context for the user interface.
|
void |
updateFullscreenMode()
Toggle between full screen and non full screen mode.
|
private final org.apache.log4j.Logger logger
private ch.sahits.game.openpatrician.util.GamePropertyUtility gamePropertyUtility
private final int minWidth
private final int minHeight
private int width
private int height
private boolean fullscreen
private javafx.stage.Stage primaryStage
private final AggregateEventHandler<javafx.scene.input.KeyEvent> keyEventHandlerAggregate
private final MouseClickLocationEventHandler mouseClickEventHandler
private static OpenPaticianApplicationWindow instance
private org.springframework.context.ApplicationContext context
public OpenPaticianApplicationWindow()
public static SceneChangeable getApplication()
public void start(javafx.stage.Stage primaryStage)
throws Exception
start in class javafx.application.ApplicationExceptionpublic void changeScene(OpenPatricianScene scene)
SceneChangeablechangeScene in interface SceneChangeableSceneChangeable.changeScene(ch.sahits.game.javafx.OpenPatricianScene)public void updateFullscreenMode()
public static void startClientUI(String[] args)
args - Array of arguments, currently empty.public double getSceneWidth()
SceneChangeablegetSceneWidth in interface SceneChangeablepublic double getSceneHeight()
SceneChangeablegetSceneHeight in interface SceneChangeablepublic void stop()
throws Exception
stop in class javafx.application.ApplicationExceptionprivate void stopUIApplicationContext()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.