- All Implemented Interfaces:
Skin<WorldMapView>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) protected PropertiesloadData()Loads the properties file that is storing the SVG path information for each country.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Field Details
-
locationMap
-
-
Constructor Details
-
WorldMapViewSkin
-
-
Method Details
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classSkinBase<WorldMapView>
-
loadData
Loads the properties file that is storing the SVG path information for each country. This method can be overriden to provide a different, maybe more detailed, data set. However, the default data set used by ControlsFX has to be small in order to keep the distribution small. The structure of the properties file needs to look like this:AE=M619.87,393.72L620.37,393.57L620.48,394.41L622.67,393.93 .... AF=M646.88,356.9L649.74,358.2L651.85,357.74L652.44,356.1 .... ......- Returns:
- the properties file storing the SVG path data for each country
-