source: josm/trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerProducers.java@ 13419

Last change on this file since 13419 was 10600, checked in by Don-vip, 8 years ago

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

  • Property svn:eol-style set to native
File size: 1.3 KB
RevLine 
[6380]1// License: GPL. For details, see LICENSE file.
[626]2package org.openstreetmap.josm.gui.layer.markerlayer;
3
[582]4import java.io.File;
[8806]5import java.util.Collection;
[582]6
[444]7import org.openstreetmap.josm.data.gpx.WayPoint;
[626]8
9/**
10 * This interface has to be implemented by anyone who wants to create markers.
[1169]11 *
12 * When reading a gpx file, all implementations of MarkerMaker registered with
[626]13 * the Marker are consecutively called until one returns a Marker object.
[1169]14 *
[6830]15 * @author Frederik Ramm
[10600]16 * @since 200 (creation)
17 * @since 10600 (functional interface)
[626]18 */
[10600]19@FunctionalInterface
[626]20public interface MarkerProducers {
[1169]21 /**
[8806]22 * Returns a collection of Marker objects if this implementation wants to create one for the
[1169]23 * given input data, or <code>null</code> otherwise.
24 *
25 * @param wp waypoint data
26 * @param relativePath An path to use for constructing relative URLs or
27 * <code>null</code> for no relative URLs
[9239]28 * @param parentLayer parent marker layer
29 * @param time Absolute time of marker in seconds since epoch
30 * @param offset Time offset in seconds from the gpx point from which it was derived
[8806]31 * @return A collection of Marker objects, or <code>null</code>.
[1169]32 */
[8806]33 Collection<Marker> createMarkers(WayPoint wp, File relativePath, MarkerLayer parentLayer, double time, double offset);
[626]34}
Note: See TracBrowser for help on using the repository browser.