Class ImageCache
- java.lang.Object
-
- org.eclipse.nebula.widgets.ganttchart.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.
-
-
-
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.
-
-