| java.lang.Object com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager com.bostechcorp.cbesb.ui.util.resource.ESBResourceManager
ESBResourceManager | public class ESBResourceManager extends SWTResourceManager (Code) | | Utility class for managing OS resources associated with SWT/JFace controls
such as colors, fonts, images, etc.
!!! IMPORTANT !!! Application code must explicitly invoke the
dispose() method to release the operating system resources
managed by cached objects when those objects and OS resources are no longer
needed (e.g. on application shutdown)
This class may be freely distributed as part of any application or plugin.
Copyright (c) 2003 - 2005, Instantiations, Inc.
All Rights Reserved
author: scheglov_ke author: Dan Rubel |
dispose | public static void dispose()(Code) | | Dispose of cached objects and their underlying OS resources. This should
only be called when the cached objects are no longer needed (e.g. on
application shutdown)
|
disposeImages | public static void disposeImages()(Code) | | Dispose all of the cached images
|
getImage | public static Image getImage(ImageDescriptor descriptor)(Code) | | Returns an image based on the specified image descriptor
Parameters: descriptor - ImageDescriptor The image descriptor for the image Image The image based on the specified image descriptor |
getImageDescriptor | public static ImageDescriptor getImageDescriptor(Class clazz, String path)(Code) | | Returns an image descriptor stored in the file at the specified path
relative to the specified class
Parameters: clazz - Class The class relative to which to find the image descriptor Parameters: path - String The path to the image file ImageDescriptor The image descriptor stored in the file at thespecified path |
getImageDescriptor | public static ImageDescriptor getImageDescriptor(String path)(Code) | | Returns an image descriptor stored in the file at the specified path
Parameters: path - String The path to the image file ImageDescriptor The image descriptor stored in the file at thespecified path |
getPluginImage | public static Image getPluginImage(Object plugin, String name)(Code) | | Retuns an image based on a plugin and file path
Parameters: plugin - Object The plugin containing the image Parameters: name - String The path to th eimage within the plugin Image The image stored in the file at the specified path |
getPluginImageDescriptor | public static ImageDescriptor getPluginImageDescriptor(Object plugin, String name)(Code) | | Retuns an image descriptor based on a plugin and file path
Parameters: plugin - Object The plugin containing the image Parameters: name - String The path to th eimage within the plugin ImageDescriptor The image descriptor stored in the file at thespecified path |
Methods inherited from com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager | public static Image decorateImage(Image baseImage, Image decorator)(Code)(Java Doc) public static Image decorateImage(Image baseImage, Image decorator, int corner)(Code)(Java Doc) public static void dispose()(Code)(Java Doc) public static void disposeColors()(Code)(Java Doc) public static void disposeCursors()(Code)(Java Doc) public static void disposeFonts()(Code)(Java Doc) public static void disposeImages()(Code)(Java Doc) public static void disposeImages(String section)(Code)(Java Doc) public static void fixCoolBarSize(CoolBar bar)(Code)(Java Doc) public static Font getBoldFont(Font baseFont)(Code)(Java Doc) public static Color getColor(int systemColorID)(Code)(Java Doc) public static Color getColor(int r, int g, int b)(Code)(Java Doc) public static Color getColor(RGB rgb)(Code)(Java Doc) public static Cursor getCursor(int id)(Code)(Java Doc) public static Font getFont(String name, int height, int style)(Code)(Java Doc) public static Font getFont(String name, int size, int style, boolean strikeout, boolean underline)(Code)(Java Doc) protected static Image getImage(InputStream is)(Code)(Java Doc) public static Image getImage(String path)(Code)(Java Doc) public static Image getImage(String section, String path)(Code)(Java Doc) public static Image getImage(Class clazz, String path)(Code)(Java Doc)
|
|
|