/** * set the maximum to be used for the {@link Image} cache * <br>the start up value is 64 (meaning MB) * <br>using 0 switches off caching and clears the cache in that moment * * @param max cache size in MB */ public static void setImageCache(int max) { if (ImageCache > max) { Image.clearCache(max); } ImageCache = max; }
/** * clears all caches (should only be needed for debugging) */ public static void reset() { clearCache(0); imageNames.clear(); imageFiles.clear(); }