org.eclipse.jface.resource |
Package-level Javadoc
Provides support for managing resources such as SWT
fonts and images.
Package Specification
This package contains support for managing resources, including:
-
font registries (FontRegistry) - for hanging on to the SWT font
objects needed by an application
-
color registries (ColorRegistry) - for hanging on to the SWT color
objects needed by an application
-
image registries (ImageRegistry) - for hanging on to the SWT image
objects needed by an application
-
image descriptors (ImageDescriptor) - surrogate object for creating
SWT images
-
string conversion (StringConverter) - for parsing property files
The JFace resources module is an independent JFace module requiring a basic
knowledge of SWT and the JFace property change event mechanism. Familiarity
with other JFace modules is not required.
Image descriptors are objects that knows how to create an image on demand.
They serve as a lightweight representation of images in situations where
no SWT display exists yet, and are used mainly in conjunction with image
registries. This package contains the image descriptor framework, which
is a simple hierarchy rooted at the abstract class ImageDescriptor.
The framework includes abstract subclasses for composing images (CompositeImageDescriptor)
as well as a ready-made concrete subclass for loading images from files
(FileImageDescriptor).
The class JFaceResources maintains global state on behalf of
JFace itself consisting of JFace's own image registry, font registry, resource
bundle, and preference store.
|
Java Source File Name | Type | Comment |
AbstractResourceManager.java | Class | Abstract implementation of ResourceManager. |
ArrayFontDescriptor.java | Class | |
ColorDescriptor.java | Class | Lightweight descriptor for an SWT color. |
ColorRegistry.java | Class | A color registry maintains a mapping between symbolic color names and SWT
Color s.
A color registry owns all of the Color objects registered with
it, and automatically disposes of them when the SWT Display that creates the
Color s is disposed. |
CompositeImageDescriptor.java | Class | Abstract base class for image descriptors that synthesize an image from other
images in order to simulate the effect of custom drawing. |
DataFormatException.java | Class | An exception indicating that a string value could not be
converted into the requested data type. |
DerivedImageDescriptor.java | Class | An image descriptor which creates images based on another ImageDescriptor, but with
additional SWT flags. |
DeviceResourceDescriptor.java | Class | Instances of this class can allocate and dispose SWT resources. |
DeviceResourceException.java | Class | |
DeviceResourceManager.java | Class | Manages SWT resources for a particular device.
IMPORTANT: in most cases clients should use a LocalResourceManager instead of a
DeviceResourceManager . |
FileImageDescriptor.java | Class | An image descriptor that loads its image information
from a file. |
FontDescriptor.java | Class | Lightweight descriptor for a font. |
FontRegistry.java | Class | A font registry maintains a mapping between symbolic font names
and SWT fonts.
A font registry owns all of the font objects registered
with it, and automatically disposes of them when the SWT Display
that creates the fonts is disposed. |
ImageDataImageDescriptor.java | Class | |
ImageDescriptor.java | Class | An image descriptor is an object that knows how to create
an SWT image. |
ImageRegistry.java | Class | An image registry maintains a mapping between symbolic image names
and SWT image objects or special image descriptor objects which
defer the creation of SWT image objects until they are needed.
An image registry owns all of the image objects registered
with it, and automatically disposes of them when the SWT Display
that creates the images is disposed. |
JFaceColors.java | Class | JFaceColors is the class that stores references
to all of the colors used by JFace. |
JFaceResources.java | Class | Utility methods to access JFace-specific resources.
All methods declared on this class are static. |
LocalResourceManager.java | Class | A local registry that shares its resources with some global registry.
LocalResourceManager is typically used to safeguard against leaks. |
MissingImageDescriptor.java | Class | The image descriptor for a missing image.
Use MissingImageDescriptor.getInstance to
access the singleton instance maintained in an
internal state variable. |
ResourceManager.java | Class | This class manages SWT resources. |
ResourceRegistry.java | Class | Abstract base class for various JFace registries. |
RGBColorDescriptor.java | Class | Describes a color by its RGB values. |
StringConverter.java | Class | Helper class for converting various data types to and from
strings. |
URLImageDescriptor.java | Class | An ImageDescriptor that gets its information from a URL.
This class is not public API. |