public class ClientImageManager extends ImageManager
ImageManager.ImageKey, ImageManager.OptimalImageCreator| Constructor and Description |
|---|
ClientImageManager(ResourceManager rmgr,
Component context) |
ClientImageManager(ResourceManager rmgr,
ImageManager.OptimalImageCreator icreator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheSize()
Returns how much space we're willing to use for caching images.
|
Mirage |
getMirage(ImageManager.ImageKey key,
Rectangle bounds,
Colorization[] zations)
Like
ImageManager.getMirage(ImageKey,Colorization[]) except that the mirage is created using
only the specified subset of the original image. |
static void |
setCacheSize(int cacheKilobytes)
Sets the size of the image cache.
|
static void |
setPrepareImages(boolean prepareImages)
Sets if images should be recreated in the graphics context's preferred format before
rendering.
|
clearCache, createImage, getImage, getImage, getImage, getImage, getImage, getImageCreator, getImageKey, getImageKey, getMirage, getMirage, getMirage, getMirage, getPreparedImage, getPreparedImage, getPreparedImagepublic ClientImageManager(ResourceManager rmgr, ImageManager.OptimalImageCreator icreator)
public ClientImageManager(ResourceManager rmgr, Component context)
public static void setCacheSize(int cacheKilobytes)
public static void setPrepareImages(boolean prepareImages)
public int getCacheSize()
ImageManagergetCacheSize in class ImageManagerpublic Mirage getMirage(ImageManager.ImageKey key, Rectangle bounds, Colorization[] zations)
ImageManagerImageManager.getMirage(ImageKey,Colorization[]) except that the mirage is created using
only the specified subset of the original image.getMirage in class ImageManagerCopyright © 2015. All rights reserved.