public abstract class BaseStartupScene extends OpenPatricianScene
createPerspectiveTransform()
must be applied. This effect however does not change the bounds
of the involved controls. Therefore the following steps have to be taken:
// Load the polygons for the scene with the name startup from the indicated file
List<ch.sahits.game.graphic.data.Polygon> startupPolygons = polygonLoader.getPolygon("/polygonDefinition.xml", "startup");
// Find the polygon with the name polygonName and create an instance
Polygon untransformed = polygonLoader.toJavaFXPolygon(polygonLoader.find(startupPolygons, polygonName));
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseStartupScene.LabelHoverChangeListener
ChangeListener which changes the style class of the label upon a boolean change.
|
| Modifier and Type | Field and Description |
|---|---|
protected double |
imgHeigth |
protected double |
imgWidth |
private IImageLoader |
imsLoader |
protected javafx.scene.image.ImageView |
paperScroll |
private SceneChangeable |
sceneChangeable |
protected double |
untransformedHeight |
protected double |
untransformedWidth |
| Constructor and Description |
|---|
BaseStartupScene(javafx.scene.layout.Region root) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeScene(OpenPatricianScene scene) |
protected javafx.scene.layout.Pane |
createBaseSceneLayout()
Create the base scene layout containing the paper scroll.
|
protected javafx.scene.effect.PerspectiveTransform |
createPerspectiveTransform()
Define the perspective transform that will map a rectangle (control) to the paper scroll.
|
SceneChangeable |
getSceneChangeable() |
protected abstract String |
getStyleSheetFilename()
Define the stylesheet name to be applied for this scene.
|
void |
setSceneChangeable(SceneChangeable sceneChangeable) |
getRoot, heightChange, widthChange@Autowired @Qualifier(value="xmlImageLoader") private IImageLoader imsLoader
protected javafx.scene.image.ImageView paperScroll
protected double imgWidth
protected double imgHeigth
protected double untransformedWidth
protected double untransformedHeight
private SceneChangeable sceneChangeable
protected abstract String getStyleSheetFilename()
protected final javafx.scene.layout.Pane createBaseSceneLayout()
getStyleSheetFilename(). Initialize dimensionsprotected final javafx.scene.effect.PerspectiveTransform createPerspectiveTransform()
public SceneChangeable getSceneChangeable()
public void setSceneChangeable(SceneChangeable sceneChangeable)
public void changeScene(OpenPatricianScene scene)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.