Class AbstractImageProvider

  • All Implemented Interfaces:
    ImageProvider

    public abstract class AbstractImageProvider
    extends java.lang.Object
    implements ImageProvider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​Image> map  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reset()
      Resets the cached images.
      Image retrieve​(java.lang.String src)
      Retrieve and image from the store.
      void store​(java.lang.String src, Image img)
      Store allows ImageProvider users to cache the found images.
      • Methods inherited from class java.lang.Object

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

      • map

        private final java.util.Map<java.lang.String,​Image> map
    • Constructor Detail

      • AbstractImageProvider

        public AbstractImageProvider()
    • Method Detail

      • retrieve

        public Image retrieve​(java.lang.String src)
        Description copied from interface: ImageProvider
        Retrieve and image from the store.
        Specified by:
        retrieve in interface ImageProvider
        Parameters:
        src - the source found in src attribute
        Returns:
        the Image
      • store

        public void store​(java.lang.String src,
                          Image img)
        Description copied from interface: ImageProvider
        Store allows ImageProvider users to cache the found images.
        Specified by:
        store in interface ImageProvider
        Parameters:
        src - the src attribute
        img - the image.