Class DefaultMarkerProducers
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.markerlayer.DefaultMarkerProducers
-
- All Implemented Interfaces:
MarkerProducers
public final class DefaultMarkerProducers extends java.lang.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 java.util.Collection<Marker>
createMarkers(WayPoint wpt, java.io.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 java.net.URL
uriToUrl(java.lang.String uri, java.io.File relativePath)
-
-
-
Constructor Detail
-
DefaultMarkerProducers
public DefaultMarkerProducers()
-
-
Method Detail
-
createMarkers
public java.util.Collection<Marker> createMarkers(WayPoint wpt, java.io.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
.
-
uriToUrl
private static java.net.URL uriToUrl(java.lang.String uri, java.io.File relativePath)
-
-