Class DefaultMarkerProducers
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.markerlayer.DefaultMarkerProducers
-
- All Implemented Interfaces:
MarkerProducers
public final class DefaultMarkerProducers extends Object implements MarkerProducers
Marker specifying the default behaviour.- Since:
- 11892 (extracted from Marker)
-
-
Constructor Summary
Constructors Constructor Description DefaultMarkerProducers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Marker>
createMarkers(WayPoint wpt, 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.private static URL
uriToUrl(String uri, File relativePath)
-
-
-
Constructor Detail
-
DefaultMarkerProducers
public DefaultMarkerProducers()
-
-
Method Detail
-
createMarkers
public Collection<Marker> createMarkers(WayPoint wpt, File relativePath, MarkerLayer parentLayer, double time, double offset)
Description copied from interface:MarkerProducers
Returns a collection of Marker objects if this implementation wants to create one for the given input data, ornull
otherwise.- Specified by:
createMarkers
in interfaceMarkerProducers
- Parameters:
wpt
- 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
.
-
-