Interface MarkerProducers
-
- All Known Implementing Classes:
DefaultMarkerProducers
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MarkerProducers
This interface has to be implemented by anyone who wants to create markers. When reading a gpx file, all implementations of MarkerMaker registered with the Marker are consecutively called until one returns a Marker object.- Since:
- 200 (creation), 10600 (functional interface)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Marker>
createMarkers(WayPoint wp, File relativePath, MarkerLayer parentLayer, double time, double offset)
Returns a collection of Marker objects if this implementation wants to create one for the given input data, ornull
otherwise.
-
-
-
Method Detail
-
createMarkers
Collection<Marker> createMarkers(WayPoint wp, File relativePath, MarkerLayer parentLayer, double time, double offset)
Returns a collection of Marker objects if this implementation wants to create one for the given input data, ornull
otherwise.- Parameters:
wp
- waypoint datarelativePath
- An path to use for constructing relative URLs ornull
for no relative URLsparentLayer
- parent marker layertime
- Absolute time of marker in seconds since epochoffset
- Time offset in seconds from the gpx point from which it was derived- Returns:
- A collection of Marker objects, or
null
.
-
-