Interface TileLoaderFactory

  • All Known Implementing Classes:
    CachedTileLoaderFactory
    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 TileLoaderFactory
    Factory creating TileLoaders for layers
    Since:
    8526
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.openstreetmap.gui.jmapviewer.interfaces.TileLoader makeTileLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, java.util.Map<java.lang.String,​java.lang.String> headers, long minimumExpiryTime)
      Creates TileLoaderFactory - factory that creates tile loaders with all options already set
    • Method Detail

      • makeTileLoader

        org.openstreetmap.gui.jmapviewer.interfaces.TileLoader makeTileLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener,
                                                                              java.util.Map<java.lang.String,​java.lang.String> headers,
                                                                              long minimumExpiryTime)
        Creates TileLoaderFactory - factory that creates tile loaders with all options already set
        Parameters:
        listener - that will be notified, when tile has finished loading
        headers - that will be sent with requests to TileSource. null indicates none
        minimumExpiryTime - minimum expiry time
        Returns:
        TileLoader that uses both of above