|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageCache
public class ImageCache
A singleton cache for images.
Field Summary | |
---|---|
static String |
ALPHA
|
static String |
CHECKED
|
static String |
DOWN
|
static String |
FEATURE
|
static String |
GRID
|
static String |
IMAGE_FULLEXTENT
|
static String |
IMAGE_INFO
|
static String |
IMAGE_INFO_ICON
|
static String |
IMAGE_PAN
|
static String |
IMAGE_ZOOMIN
|
static String |
IMAGE_ZOOMOUT
|
static String |
OPEN
|
static String |
REMOVE_LAYER
|
static String |
STYLE
|
static String |
UNCHECKED
|
static String |
UP
|
Method Summary | |
---|---|
void |
addImage(String key,
Image image)
Method to add images with key. |
void |
dispose()
Disposes the images and clears the internal map. |
Image |
getImage(String key)
Get an image for a certain key. |
static ImageCache |
getInstance()
|
List<String> |
getRelativePaths()
Getter for the list of keys of the images, which are also the relative path. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CHECKED
public static final String UNCHECKED
public static final String STYLE
public static final String GRID
public static final String FEATURE
public static final String UP
public static final String DOWN
public static final String OPEN
public static final String ALPHA
public static final String REMOVE_LAYER
public static final String IMAGE_INFO
public static final String IMAGE_INFO_ICON
public static final String IMAGE_PAN
public static final String IMAGE_ZOOMIN
public static final String IMAGE_ZOOMOUT
public static final String IMAGE_FULLEXTENT
Method Detail |
---|
public static ImageCache getInstance()
public Image getImage(String key)
The only keys to be used are the static strings in this class
key
- a file key, as for example IMAGE_PAN
.
public void dispose()
public void addImage(String key, Image image)
This is handy for example in cases in which it is not possible to retrieve the images from within the bundle. Ex. eclipse plugin environment.
key
- the key for the image.image
- the image to add.public List<String> getRelativePaths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |