Interface SceneChangeable
-
- All Known Subinterfaces:
IOpenPatricianApplicationWindow
public interface SceneChangeableInterface allowing which allows the current scene to be replaced with another one.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Sep 3, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeScene(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene)Change the scene of the applicationdoublegetSceneHeight()Retrieve the height of the current scene.doublegetSceneWidth()Retrieve the width of the current scene.
-
-
-
Method Detail
-
changeScene
void changeScene(ch.sahits.game.openpatrician.javafx.OpenPatricianScene scene)
Change the scene of the application- Parameters:
scene- new scene to change to.
-
getSceneWidth
double getSceneWidth()
Retrieve the width of the current scene. This is required to update the width dimension of the new scene. This is due to this bug: https://javafx-jira.kenai.com/browse/RT-30392- Returns:
- scene width
-
getSceneHeight
double getSceneHeight()
Retrieve the height of the current scene. This is required to update the height dimension of the new scene. This is due to this bug: https://javafx-jira.kenai.com/browse/RT-30392- Returns:
- scene height
-
-