oracle.cabo.image
Class ImageTypeManager
java.lang.Object
|
+--oracle.cabo.image.ImageTypeManager
- public class ImageTypeManager
- extends java.lang.Object
ImageTypeManager maintains a set of ImageType objects, each of which
defines a type of image component (eg. button, tab bar, etc...) which
can be generated (and cached). Each ImageType is identified by
a name and namespace. ImageType instances provide the type-specific
information needed to generate (and cache) images through a set of
properties which can be accessed via the ImageType inteface.
Clients can use the default ImageTypeManager, which can be obtained
via the getDefaultImageTypeManager(), or create their own.
- See Also:
ImageType
,
ImageConstants
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageTypeManager
public ImageTypeManager()
- Creates a new, empty ImageTypeManager.
getDefaultImageTypeManager
public static ImageTypeManager getDefaultImageTypeManager()
- Returns the default, shared instance of ImageTypeManager.
This instance is initialized with entries for the
BLAF image types.
getImageType
public ImageType getImageType(java.lang.String namespace,
java.lang.String name)
- Returns an ImageType object for the specified type.
If no ImageType of the specified namespace and name has been
registered, returns null.
- Parameters:
namespace
- The namespace for the typename
- The name of the type
registerImageType
public ImageType registerImageType(java.lang.String namespace,
java.lang.String name,
java.util.Dictionary properties)
- Registers the specified image type.
If an image type of the specified name/namespace is already
registered, the specified properties are registered with the
image type, which is returned.
- Parameters:
namespace
- The namespace of the image typename
- The name of the image typeproperties
- The properties of the image type- Returns:
- The ImageType for the specified name and namespace
is returned.
unregisterImageType
public void unregisterImageType(ImageType type)
- Unregisters the specified image type.
If the specified type is not registered, no action is performed.
- Parameters:
type
- The ImageType to unregister.