Class CreditsScene
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.OpenPatricianScene
-
- ch.sahits.game.openpatrician.display.scene.BaseStartupScene
-
- ch.sahits.game.openpatrician.display.scene.CreditsScene
-
public class CreditsScene extends BaseStartupScene
Scene displaying the credits.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Sep 6, 2013
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classCreditsScene.BackToStartupSceneEvenHandler to get back to the startup screen.-
Nested classes/interfaces inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
BaseStartupScene.LabelHoverChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description private static intFONT_SIZEprivate IFontLoaderfontLoaderprivate javafx.scene.GrouplabelShapesprivate Localelocaleprivate org.springframework.context.MessageSourcemessageSourceprivate javafx.scene.GrouppaginationGroupprivate IPolygonLoaderpolygonLoaderprivate TextParsertextParserprivate UIFactoryuiFactoryprivate booleanwithPolygonShading-
Fields inherited from class ch.sahits.game.openpatrician.display.scene.BaseStartupScene
paperScroll, untransformedHeight, untransformedWidth
-
-
Constructor Summary
Constructors Constructor Description CreditsScene()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javafx.scene.shape.PolygoncreatePolygonShape(java.lang.String polygonName)Create the polygon using the polygon loader.private TextgetCreditsText()Retrieve the history text.protected java.lang.StringgetStyleSheetFilename()Define the stylesheet name to be applied for this scene.voidheightChange(double oldHeight, double newHeigth)Method that is called when the height of the scene changes.private voidsetUpScene()voidwidthChange(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
-
FONT_SIZE
private static final int FONT_SIZE
- See Also:
- Constant Field Values
-
textParser
@Autowired private TextParser textParser
-
polygonLoader
@Autowired private IPolygonLoader polygonLoader
-
fontLoader
@Autowired private IFontLoader fontLoader
-
uiFactory
@Autowired private UIFactory uiFactory
-
locale
@Autowired private Locale locale
-
messageSource
@Autowired private org.springframework.context.MessageSource messageSource
-
labelShapes
private javafx.scene.Group labelShapes
-
paginationGroup
private javafx.scene.Group paginationGroup
-
withPolygonShading
private boolean withPolygonShading
-
-
Method Detail
-
getStyleSheetFilename
protected java.lang.String getStyleSheetFilename()
Description copied from class:BaseStartupSceneDefine the stylesheet name to be applied for this scene.- Specified by:
getStyleSheetFilenamein 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
-
getCreditsText
private Text getCreditsText()
Retrieve the history text.- Returns:
- Text component containing the credits
-
heightChange
public void heightChange(double oldHeight, double newHeigth)Description copied from class:OpenPatricianSceneMethod that is called when the height of the scene changes. Subclasses that need to be aware of size changes should override this method.- Overrides:
heightChangein 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:OpenPatricianSceneMethod that is called when the width of the scene changes. Subclasses that need to be aware of size changes should override this method.- Overrides:
widthChangein classOpenPatricianScene- Parameters:
oldWidth- old width of the scenenewWidth- new width of the scene
-
-