Class CachedTileLoaderFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      CachedTileLoaderFactory​(org.apache.commons.jcs3.access.behavior.ICacheAccess<java.lang.String,​BufferedImageCacheEntry> cache, java.lang.Class<? extends org.openstreetmap.gui.jmapviewer.interfaces.TileLoader> tileLoaderClass)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.openstreetmap.gui.jmapviewer.interfaces.TileLoader getLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, org.apache.commons.jcs3.access.behavior.ICacheAccess<java.lang.String,​BufferedImageCacheEntry> cache, TileJobOptions options)  
      private static StringProperty getTileCacheDir()  
      org.openstreetmap.gui.jmapviewer.interfaces.TileLoader makeTileLoader​(org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener listener, java.util.Map<java.lang.String,​java.lang.String> inputHeaders, long minimumExpiryTime)
      Creates TileLoaderFactory - factory that creates tile loaders with all options already set
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedTileLoaderFactory

        public CachedTileLoaderFactory​(org.apache.commons.jcs3.access.behavior.ICacheAccess<java.lang.String,​BufferedImageCacheEntry> cache,
                                       java.lang.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:
        java.lang.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,
                                                                                     java.util.Map<java.lang.String,​java.lang.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<java.lang.String,​BufferedImageCacheEntry> cache,
                                                                                   TileJobOptions options)