public abstract class ScenePolygonInitialzer extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ScenePolygonInitialzer.PolygonComparator
Comparator based on descending order of the entries key values.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
logger |
private IPolygonScaling |
scaler |
private String |
SCENE_IMAGE_NAME |
protected IDataImageLoader |
xmlLoader |
| Constructor and Description |
|---|
ScenePolygonInitialzer(String sceneName) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addAction(NamedPolygon poly)
Add an event to the polygon.
|
protected abstract javafx.event.EventHandler<javafx.scene.input.MouseEvent> |
createEventHandler(String name)
Create an event handler for the clicking on the polygon with the given name.
|
List<javafx.scene.shape.Polygon> |
initialzePolygons(ImageScaleState state)
Initialize the polygons defined in the metadata considering the proper scaling and cropping.
|
protected static final org.apache.logging.log4j.Logger logger
private final String SCENE_IMAGE_NAME
@Autowired @Qualifier(value="xmlImageLoader") protected IDataImageLoader xmlLoader
@Autowired @Qualifier(value="polygonScaling") private IPolygonScaling scaler
public ScenePolygonInitialzer(String sceneName)
public List<javafx.scene.shape.Polygon> initialzePolygons(ImageScaleState state)
state - current stateprivate void addAction(NamedPolygon poly)
poly - polygonprotected abstract javafx.event.EventHandler<javafx.scene.input.MouseEvent> createEventHandler(String name)
name - of the polygonCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.