Class PriorityImageManagerHttp<T>

    • Constructor Detail

      • PriorityImageManagerHttp

        public PriorityImageManagerHttp(int nThreads,
                                        int cacheSize,
                                        X resolver)
        Create an ImageSource based ImageManager implementation that does in-RAM caching.
        Parameters:
        nThreads - the number of threads to use for providing images.
        cacheSize - the number of data elements to store in the RAM cache.
        source - the ImageSource to use for creation of unknown requests.
    • Method Detail

      • setNetworkState

        public void setNetworkState(boolean state)
        Set whether an internet connection shall be used to retrieve tiles.
        Parameters:
        state - the network state.
      • getNetworkState

        public boolean getNetworkState()
        Returns:
        whether an internet connection shall be used to retrieve tiles.
      • setUserAgent

        public void setUserAgent(String userAgent)
        Set the user-agent to use during HTTP-requests.
        Parameters:
        userAgent - the user agent to use.