- java.lang.Object
-
- javafx.scene.control.SkinBase<WorldMapView>
-
- impl.org.controlsfx.worldmap.WorldMapViewSkin
-
- All Implemented Interfaces:
Skin<WorldMapView>
public class WorldMapViewSkin extends SkinBase<WorldMapView>
-
-
Field Summary
Fields Modifier and Type Field Description protected ObservableMap<WorldMapView.Location,Node>
locationMap
-
Constructor Summary
Constructors Constructor Description WorldMapViewSkin(WorldMapView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
protected Properties
loadData()
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, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
Field Detail
-
locationMap
protected ObservableMap<WorldMapView.Location,Node> locationMap
-
-
Constructor Detail
-
WorldMapViewSkin
public WorldMapViewSkin(WorldMapView view)
-
-
Method Detail
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
- Overrides:
layoutChildren
in classSkinBase<WorldMapView>
-
loadData
protected Properties 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
-
-