Class CachedTileLoaderFactory

    • Constructor Detail

      • CachedTileLoaderFactory

        public CachedTileLoaderFactory​(org.apache.commons.jcs3.access.behavior.ICacheAccess<String,​BufferedImageCacheEntry> cache,
                                       Class<? extends org.openstreetmap.gui.jmapviewer.interfaces.TileLoader> tileLoaderClass)
        Parameters:
        cache - cache instance which will be used by tile loaders created by this tile loader
        tileLoaderClass - tile loader class that will be created
        Throws:
        IllegalArgumentException - if a suitable constructor cannot be found for tileLoaderClass
    • Method Detail

      • makeTileLoader

        public org.openstreetmap.gui.jmapviewer.interfaces.TileLoader makeTileLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener,
                                                                                     Map<String,​String> inputHeaders,
                                                                                     long minimumExpiryTime)
        Description copied from interface: TileLoaderFactory
        Creates TileLoaderFactory - factory that creates tile loaders with all options already set
        Specified by:
        makeTileLoader in interface TileLoaderFactory
        Parameters:
        listener - that will be notified, when tile has finished loading
        inputHeaders - that will be sent with requests to TileSource. null indicates none
        minimumExpiryTime - minimum expiry time
        Returns:
        TileLoader that uses both of above
      • getLoader

        protected org.openstreetmap.gui.jmapviewer.interfaces.TileLoader getLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener,
                                                                                   org.apache.commons.jcs3.access.behavior.ICacheAccess<String,​BufferedImageCacheEntry> cache,
                                                                                   TileJobOptions options)