net.refractions.udig.style
Class Images

java.lang.Object
  extended by net.refractions.udig.style.Images

public class Images
extends java.lang.Object

The image descriptors for the plugin


Constructor Summary
Images()
           
 
Method Summary
 void cleanUp()
          Cleanup image cache.
static Image get(java.lang.String id)
          Returns the image associated with the given key, or null if none.
static ImageDescriptor getDescriptor(java.lang.String id)
          Returns the image descriptor for ID, or null if not found.
 ImageDescriptor getImageDescriptor(java.lang.String id)
           
 void initializeImages(java.net.URL url, ImageRegistry shared)
          Initializes the table of images used in this plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Images

public Images()
Method Detail

getDescriptor

public static ImageDescriptor getDescriptor(java.lang.String id)
Returns the image descriptor for ID, or null if not found.

Images are from CatalogUIPlugin.getDefault().getImages()

Parameters:
id -
Returns:
ImageDescriptor, or null if there is no such image.

initializeImages

public void initializeImages(java.net.URL url,
                             ImageRegistry shared)
Initializes the table of images used in this plugin.

The Images from ISharedImages will be registered with CatalogUIPlugin.getDefault().getImageRegistry().

Parameters:
url -
shared -

cleanUp

public void cleanUp()
Cleanup image cache.


getImageDescriptor

public ImageDescriptor getImageDescriptor(java.lang.String id)

get

public static Image get(java.lang.String id)
Returns the image associated with the given key, or null if none.

Parameters:
id - the key
Returns:
the image, or null if none