Package SpecificationThis 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
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
The framework includes abstract subclasses for composing images (
as well as a ready-made concrete subclass for loading images from files
JFaceResources maintains global state on behalf of
JFace itself consisting of JFace's own image registry, font registry, resource
bundle, and preference store.
Class Summary Class Description ColorDescriptorLightweight descriptor for an SWT color. ColorRegistryA color registry maintains a mapping between symbolic color names and SWT
CompositeImageDescriptorAbstract base class for image descriptors that synthesize an image from other images in order to simulate the effect of custom drawing. DeviceResourceDescriptorInstances of this class can allocate and dispose SWT resources. DeviceResourceManagerManages SWT resources for a particular device. FontDescriptorLightweight descriptor for a font. FontRegistryA font registry maintains a mapping between symbolic font names and SWT fonts. ImageDescriptorAn image descriptor is an object that knows how to create an SWT image. ImageRegistryAn 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. JFaceColorsJFaceColors is the class that stores references to all of the colors used by JFace. JFaceResourcesUtility methods to access JFace-specific resources. LocalResourceManagerA local registry that shares its resources with some global registry. ResourceManagerThis class manages SWT resources. ResourceRegistryAbstract base class for various JFace registries. StringConverterHelper class for converting various data types to and from strings.
Exception Summary Exception Description DataFormatExceptionAn exception indicating that a string value could not be converted into the requested data type. DeviceResourceExceptionThrown when allocation of an SWT device resource fails