com.supermap.services.util.cache

Interface ImageCache

  • All Known Implementing Classes:
    DefaultImageCache


    public interface ImageCache
    

    Image cache object interface.

    • Method Detail

      • cacheExists

        boolean cacheExists(CacheItem cacheItem,
                          int width,
                          int height)
        

        Determine whether the corresponding cache exists

        Parameters:
        cacheItem -
        width -
        height -
        Returns:
      • add

        void add(CacheItem item,
               int width,
               int height)
        

        Add cache item.

        Parameters:
        item -
        mapName -
        width -
        height -
      • getCacheItems

        CacheItem[] getCacheItems(Rectangle2D bounds,
                                int width,
                                int height,
                                double scale)
        

        Get the corresponding cache item according to the range

        Parameters:
        bounds -
        Returns:
      • getCacheItems

        CacheItem[] getCacheItems(Rectangle2D bounds,
                                double scale)
        

        Get the corresponding cache item according to the range and scale

        Parameters:
        bounds -
        Returns:
      • remove

        void remove(CacheItem item)
        
        Clear single cache
        Parameters:
        item -
      • clear

        void clear(Rectangle2D bounds)
        

        Clear the cache

        Parameters:
        bounds -
      • clearAll

        void clearAll()
        

        Clear all cache.

      • clear

        void clear(Rectangle2D bounds,
                 int width,
                 int height)
        

        Clear the cache

        Parameters:
        bounds -
        width -
        height -