Class ImageSourcePathPattern<T>

    • Constructor Detail

      • ImageSourcePathPattern

        public ImageSourcePathPattern(CachePathProvider<T> resolver)
        An ImageSource implementation based that works with PathResoluter
        Parameters:
        resolver - the path generator
    • Method Detail

      • setPathResoluter

        public void setPathResoluter(CachePathProvider<T> resolver)
        Set the PathResoluter used to resolve image URLs.
        Parameters:
        resolver - the resolver to use
      • loadImage

        public BufferedImage loadImage(T thing)
        Load the image and return it as a BufferedImage together with the raw bytes.
        Parameters:
        thing - the thing to load the image for.
        Returns:
        the image and its bytes.