| java.lang.Object net.refractions.udig.ui.OverlayCache
OverlayCache | public class OverlayCache (Code) | | The OverlayCache is works specifically with DecoratorOverlayIcon allowing
decorators while not wasting resources.
Note this class is limited to working with DecoratorOveralayIcon since it
has a working equals and hashcode implemenation.
|
Method Summary | |
public Image | applyDescriptors(Image source, ImageDescriptor[] descriptors) Apply the descriptors for the receiver to the supplied image.
Example use:
applyDescriptors( base,
new ImageDescriptor[][]={
null, // TOP_LEFT unsure if we will use this
modified, // TOP_RIGHT indicate content modified (w/ *)
status, // BOTTOM_LEFT called the auxiliary overlay warn, error, success
cached, // BOTTOM_RIGHT not yet defined, recommened cache status...
| public Image | applyStatus(Image source, ImageDescriptor status) | public void | disposeAll() Disposes of all images in the cache. | Image | getImageFor(DecoratorOverlayIcon icon) Returns and caches an image corresponding to the specified icon. |
applyDescriptors | public Image applyDescriptors(Image source, ImageDescriptor[] descriptors)(Code) | | Apply the descriptors for the receiver to the supplied image.
Example use:
applyDescriptors( base,
new ImageDescriptor[][]={
null, // TOP_LEFT unsure if we will use this
modified, // TOP_RIGHT indicate content modified (w/ *)
status, // BOTTOM_LEFT called the auxiliary overlay warn, error, success
cached, // BOTTOM_RIGHT not yet defined, recommened cache status...
null, // UNDERLAY not sure if we will use this
}
);
Parameters: source - Parameters: descriptors - Image |
applyStatus | public Image applyStatus(Image source, ImageDescriptor status)(Code) | | |
disposeAll | public void disposeAll()(Code) | | Disposes of all images in the cache.
|
getImageFor | Image getImageFor(DecoratorOverlayIcon icon)(Code) | | Returns and caches an image corresponding to the specified icon.
Parameters: icon - the icon the image |
|
|