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 Detail

      • createMarkers

        Collection<MarkercreateMarkers​(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, or null otherwise.
        Parameters:
        wp - waypoint data
        relativePath - An path to use for constructing relative URLs or null for no relative URLs
        parentLayer - parent marker layer
        time - Absolute time of marker in seconds since epoch
        offset - Time offset in seconds from the gpx point from which it was derived
        Returns:
        A collection of Marker objects, or null.