AbstractMarketPlaceBuildingPolygonInitializer, ArmoryPolygonInitializer, LoanerScenePolygonInitializer, MarketScenePolygonInitializer, PortScenePolygonInitializer, ShipyardScenePolygonInitializer, TavernScenePolygonInitializerpublic abstract class ScenePolygonInitialzer
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
ScenePolygonInitialzer.PolygonComparator |
Comparator based on descending order of the entries key values.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.apache.logging.log4j.Logger |
logger |
|
protected ch.sahits.game.graphic.image.IDataImageLoader |
xmlLoader |
| Constructor | Description |
|---|---|
ScenePolygonInitialzer(java.lang.String sceneName) |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
createEventHandler(java.lang.String name) |
Create an event handler for the clicking on the polygon with the given name.
|
java.util.List<javafx.scene.shape.Polygon> |
initialzePolygons(ch.sahits.game.graphic.image.ImageScaleState state) |
Initialize the polygons defined in the metadata considering the proper scaling and cropping.
|
protected static final org.apache.logging.log4j.Logger logger
@Autowired
@Qualifier("xmlImageLoader")
protected ch.sahits.game.graphic.image.IDataImageLoader xmlLoader
public ScenePolygonInitialzer(java.lang.String sceneName)
public java.util.List<javafx.scene.shape.Polygon> initialzePolygons(ch.sahits.game.graphic.image.ImageScaleState state)
state - current stateprotected abstract javafx.event.EventHandler<javafx.scene.input.MouseEvent> createEventHandler(java.lang.String name)
name - of the polygonCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.