Class StartupScene
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
- ch.sahits.game.openpatrician.display.scene.BaseStartupScene
-
- ch.sahits.game.openpatrician.display.scene.StartupScene
-
public class StartupScene extends BaseStartupScene
The startup scene is the first scene displayed and allowing for:- New game which will replace this scene with
NewGameScene
- Load game which will replace this scene with
LoadGameScene
- Edit the game options which will replace this scene with
GameOptionsScene
- Display the game credits
- Display the Hanse history
- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jul 14, 2013
- New game which will replace this scene with
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
BaseStartupScene.LabelHoverChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.layout.Pane
labelShapes
private Locale
locale
private org.springframework.context.MessageSource
messageSource
private PluginLoader
pluginLoader
private IPolygonLoader
polygonLoader
private UIFactory
uiFactory
private javafx.scene.layout.VBox
verticalLayout
private boolean
withPolygonShading
-
Fields inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
paperScroll, untransformedHeight, untransformedWidth
-
-
Constructor Summary
Constructors Constructor Description StartupScene()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javafx.scene.shape.Polygon
createPolygonShape(java.lang.String polygonName)
Create the polygon using the polygon loader.protected java.lang.String
getStyleSheetFilename()
Define the stylesheet name to be applied for this scene.void
heightChange(double oldHeight, double newHeigth)
Method that is called when the height of the scene changes.private void
setUpScene()
void
widthChange(double oldWidth, double newWidth)
Method that is called when the width of the scene changes.-
Methods inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
changeScene, createBaseSceneLayout, createPerspectiveTransform, getSceneChangeable, setSceneChangeable
-
-
-
-
Field Detail
-
polygonLoader
@Autowired private IPolygonLoader polygonLoader
-
locale
@Autowired private Locale locale
-
messageSource
@Autowired private org.springframework.context.MessageSource messageSource
-
withPolygonShading
private boolean withPolygonShading
-
uiFactory
@Autowired private UIFactory uiFactory
-
pluginLoader
@Autowired private PluginLoader pluginLoader
-
labelShapes
private javafx.scene.layout.Pane labelShapes
-
verticalLayout
private javafx.scene.layout.VBox verticalLayout
-
-
Method Detail
-
getStyleSheetFilename
protected java.lang.String getStyleSheetFilename()
Description copied from class:BaseStartupScene
Define the stylesheet name to be applied for this scene.- Specified by:
getStyleSheetFilename
in classBaseStartupScene
- Returns:
- file name for the style sheet.
-
setUpScene
@PostConstruct private final void setUpScene()
-
createPolygonShape
private javafx.scene.shape.Polygon createPolygonShape(java.lang.String polygonName)
Create the polygon using the polygon loader.- Parameters:
polygonName
- name of the polygon- Returns:
- Polygon definition
-
heightChange
public void heightChange(double oldHeight, double newHeigth)
Description copied from class:OpenPatricianScene
Method that is called when the height of the scene changes. Subclasses that need to be aware of size changes should override this method.- Overrides:
heightChange
in classOpenPatricianScene
- Parameters:
oldHeight
- old height of the scenenewHeigth
- new height of the scene
-
widthChange
public void widthChange(double oldWidth, double newWidth)
Description copied from class:OpenPatricianScene
Method that is called when the width of the scene changes. Subclasses that need to be aware of size changes should override this method.- Overrides:
widthChange
in classOpenPatricianScene
- Parameters:
oldWidth
- old width of the scenenewWidth
- new width of the scene
-
-