Class ImageCache


  • public class ImageCache
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map mImageMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageCache()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static org.eclipse.swt.graphics.Image createImage​(java.lang.String fileName)  
      static void dispose()
      Disposes ALL images that have been cached.
      static org.eclipse.swt.graphics.Image getImage​(java.lang.String fileName)
      Returns an image that is also cached if it has to be created and does not already exist in the cache.
      • Methods inherited from class java.lang.Object

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

      • mImageMap

        private static java.util.Map mImageMap
    • Constructor Detail

      • ImageCache

        public ImageCache()
    • Method Detail

      • getImage

        public static org.eclipse.swt.graphics.Image getImage​(java.lang.String fileName)
        Returns an image that is also cached if it has to be created and does not already exist in the cache.
        Parameters:
        fileName - Filename of image to fetch
        Returns:
        Image file or null if it could not be found
      • createImage

        private static org.eclipse.swt.graphics.Image createImage​(java.lang.String fileName)
      • dispose

        public static void dispose()
        Disposes ALL images that have been cached.