| java.lang.Object com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager
All known Subclasses: com.bostechcorp.cbesb.ui.util.resource.ESBResourceManager,
SWTResourceManager | public class SWTResourceManager (Code) | | |
Field Summary | |
final public static int | BOTTOM_LEFT Style constant for placing decorator image in bottom left corner of base
image. | final public static int | BOTTOM_RIGHT Style constant for placing decorator image in bottom right corner of base
image. | final public static int | TOP_LEFT Style constant for placing decorator image in top left corner of base
image. | final public static int | TOP_RIGHT Style constant for placing decorator image in top right corner of base
image. |
Method Summary | |
public static Image | decorateImage(Image baseImage, Image decorator) | public static Image | decorateImage(Image baseImage, Image decorator, int corner) | public static void | dispose() Dispose of cached objects and their underlying OS resources. | public static void | disposeColors() | public static void | disposeCursors() | public static void | disposeFonts() | public static void | disposeImages() | public static void | disposeImages(String section) | public static void | fixCoolBarSize(CoolBar bar) | public static Font | getBoldFont(Font baseFont) | public static Color | getColor(int systemColorID) | public static Color | getColor(int r, int g, int b) | public static Color | getColor(RGB rgb) | public static Cursor | getCursor(int id) | public static Font | getFont(String name, int height, int style) | public static Font | getFont(String name, int size, int style, boolean strikeout, boolean underline) Returns a font based on its name, height and style. | protected static Image | getImage(InputStream is) | public static Image | getImage(String path) | public static Image | getImage(String section, String path) | public static Image | getImage(Class clazz, String path) |
BOTTOM_LEFT | final public static int BOTTOM_LEFT(Code) | | Style constant for placing decorator image in bottom left corner of base
image.
|
BOTTOM_RIGHT | final public static int BOTTOM_RIGHT(Code) | | Style constant for placing decorator image in bottom right corner of base
image.
|
TOP_LEFT | final public static int TOP_LEFT(Code) | | Style constant for placing decorator image in top left corner of base
image.
|
TOP_RIGHT | final public static int TOP_RIGHT(Code) | | Style constant for placing decorator image in top right corner of base
image.
|
decorateImage | public static Image decorateImage(Image baseImage, Image decorator)(Code) | | Returns an image composed of a base image decorated by another image
Parameters: baseImage - Image The base image that should be decorated Parameters: decorator - Image The image to decorate the base image Image The resulting decorated image |
decorateImage | public static Image decorateImage(Image baseImage, Image decorator, int corner)(Code) | | Returns an image composed of a base image decorated by another image
Parameters: baseImage - Image The base image that should be decorated Parameters: decorator - Image The image to decorate the base image Parameters: corner - The corner to place decorator image Image The resulting decorated image |
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)
|
disposeColors | public static void disposeColors()(Code) | | Dispose of all the cached colors
|
disposeCursors | public static void disposeCursors()(Code) | | Dispose all of the cached cursors
|
disposeFonts | public static void disposeFonts()(Code) | | Dispose all of the cached fonts
|
disposeImages | public static void disposeImages()(Code) | | Dispose all of the cached images
|
disposeImages | public static void disposeImages(String section)(Code) | | Dispose cached images in specified section
Parameters: section - the section do dispose |
fixCoolBarSize | public static void fixCoolBarSize(CoolBar bar)(Code) | | Fix the layout of the specified CoolBar
Parameters: bar - CoolBar The CoolBar that shgoud be fixed |
getBoldFont | public static Font getBoldFont(Font baseFont)(Code) | | Return a bold version of the give font
Parameters: baseFont - Font The font for whoch a bold version is desired Font The bold version of the give font |
getColor | public static Color getColor(int systemColorID)(Code) | | Returns the system color matching the specific ID
Parameters: systemColorID - int The ID value for the color Color The system color matching the specific ID |
getColor | public static Color getColor(int r, int g, int b)(Code) | | Returns a color given its red, green and blue component values
Parameters: r - int The red component of the color Parameters: g - int The green component of the color Parameters: b - int The blue component of the color Color The color matching the given red, green and blue componetvalues |
getColor | public static Color getColor(RGB rgb)(Code) | | Returns a color given its RGB value
Parameters: rgb - RGB The RGB value of the color Color The color matching the RGB value |
getCursor | public static Cursor getCursor(int id)(Code) | | Returns the system cursor matching the specific ID
Parameters: id - int The ID value for the cursor Cursor The system cursor matching the specific ID |
getFont | public static Font getFont(String name, int height, int style)(Code) | | Returns a font based on its name, height and style
Parameters: name - String The name of the font Parameters: height - int The height of the font Parameters: style - int The style of the font Font The font matching the name, height and style |
getFont | public static Font getFont(String name, int size, int style, boolean strikeout, boolean underline)(Code) | | Returns a font based on its name, height and style. Windows-specific
strikeout and underline flags are also supported.
Parameters: name - String The name of the font Parameters: size - int The size of the font Parameters: style - int The style of the font Parameters: strikeout - boolean The strikeout flag (warning: Windows only) Parameters: underline - boolean The underline flag (warning: Windows only) Font The font matching the name, height, style, strikeout andunderline |
getImage | protected static Image getImage(InputStream is)(Code) | | Returns an image encoded by the specified input stream
Parameters: is - InputStream The input stream encoding the image data Image The image encoded by the specified input stream |
getImage | public static Image getImage(String path)(Code) | | Returns an image stored in the file at the specified path
Parameters: path - String The path to the image file Image The image stored in the file at the specified path |
getImage | public static Image getImage(String section, String path)(Code) | | Returns an image stored in the file at the specified path
Parameters: section - The section to which belongs specified image Parameters: path - String The path to the image file Image The image stored in the file at the specified path |
getImage | public static Image getImage(Class clazz, String path)(Code) | | Returns an image 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 Parameters: path - String The path to the image file Image The image stored in the file at the specified path |
|
|