Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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

Constructor Summary
ImageTypeManager()
          Creates a new, empty ImageTypeManager.
 
Method Summary
static ImageTypeManager getDefaultImageTypeManager()
          Returns the default, shared instance of ImageTypeManager.
 ImageType getImageType(java.lang.String namespace, java.lang.String name)
          Returns an ImageType object for the specified type.
 ImageType registerImageType(java.lang.String namespace, java.lang.String name, java.util.Dictionary properties)
          Registers the specified image type.
 void unregisterImageType(ImageType type)
          Unregisters the specified image type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageTypeManager

public ImageTypeManager()
Creates a new, empty ImageTypeManager.
Method Detail

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 type
name - 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 type
name - The name of the image type
properties - 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.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.