Package it.tidalwave.mapviewer.javafx
Class MapView.OverlayHelper
java.lang.Object
it.tidalwave.mapviewer.javafx.MapView.OverlayHelper
- Enclosing class:
MapView
This helper class provides methods useful for creating map overlays.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(javafx.scene.Node node) Adds aNode
to the overlay.void
addAll
(Collection<? extends javafx.scene.Node> nodes) Adds multipleNode
s to the overlay.getArea()
Returns the area rendered in the map view.toMapViewPoint
(MapCoordinates coordinates) Returns a map view point corresponding to the given coordinates.
-
Constructor Details
-
OverlayHelper
public OverlayHelper()
-
-
Method Details
-
add
public void add(@Nonnull javafx.scene.Node node) Adds aNode
to the overlay.- Parameters:
node
- theNode
-
addAll
Adds multipleNode
s to the overlay.- Parameters:
nodes
- theNode
s
-
toMapViewPoint
Returns a map view point corresponding to the given coordinates.. This view point must be used to draw to the overlay.- Parameters:
coordinates
- the coordinates- Returns:
- a map view point corresponding to the given coordinates
-
getArea
Returns the area rendered in the map view..- Returns:
- the area rendered in the map view
-