| java.lang.Object com.sun.perseus.model.DefaultImageLoader com.sun.perseus.model.SVGImageLoader
SVGImageLoader | public class SVGImageLoader extends DefaultImageLoader (Code) | | JSR 226 implementation of the ImageLoader interface.
author: Kevin Wong version: $Id: SVGImageLoader.java,v 1.14 2006/06/29 10:47:34 ln156897 Exp $ |
IMAGE_REQUESTED | final protected static String IMAGE_REQUESTED(Code) | | Constant used to indicate that an image has been requested to the
ExternalResourceHandler but that the handler has not delivered the
result yet.
|
documentLoaded | protected boolean documentLoaded(Code) | | Set to true once the associated DocumentNode has fully loaded.
|
loaderUtil | protected ImageLoaderUtil loaderUtil(Code) | | ImageLoaderUtil contains helper methods which make this
implementation easier.
|
pendingNeedsURI | protected Vector pendingNeedsURI(Code) | | Keeps track of pending absoluteURI requests.
|
rasterImageConsumerTable | protected Hashtable rasterImageConsumerTable(Code) | | Simple hashtable used to track ImageNode objects.
|
svgImage | protected SVGImageImpl svgImage(Code) | | The SVGImage associated to this SVGImageLoader
|
SVGImageLoader | public SVGImageLoader(SVGImageImpl svgImage, ExternalResourceHandler handler)(Code) | | Constructor
Parameters: svgImage - the associated SVGImage, should not be null. Parameters: handler - the ExternalResourceHandler which will get the images data. |
addRasterImageConsumer | public void addRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code) | | In cases where the ImageLoader may update the images associated to a URI,
RasterImageConsumer interested in updates need to register their interest
throught this method.
Parameters: absoluteURI - the URI the RasterImageConsumer is interested in. Parameters: imageNode - the RasterImageConsumer interested in the URI. |
addToCache | void addToCache(String uri, Object image)(Code) | | Adds image to the Image cache.
Parameters: uri - the key for the Image cache. Parameters: image - the Image to store. |
allowsRelativeURI | public boolean allowsRelativeURI()(Code) | | Determines whether this ImageLoader can handle relative uri's
true if this ImageLoader can handle relative uri's;false otherwise. |
documentLoaded | public void documentLoaded(DocumentNode doc)(Code) | | Some ImageLoader implementations may wish to wait until the end of the
Document load to start retrieving resources. This method notifies
the implementation that the DocumentNode completed loading successfully.
Parameters: doc - the DocumentNode which just finised loading. |
getImageAndWait | public RasterImage getImageAndWait(String uri)(Code) | | Requests the given image. This call blocks until an image is
returned.
Parameters: uri - the requested URI. the loaded image or the same image as returned bya getBrokenImage call if the image couldnot be loaded. |
getImageFromCache | public RasterImage getImageFromCache(String uri)(Code) | | Returns the Image that was previously loaded.
Parameters: uri - the key for the Image cache. the Image associated with the key. |
getImageLater | public void getImageLater(String uri, RasterImageConsumer rasterImageConsumer)(Code) | | Requests the given image. This call returns immediately and
the image is set on the input ImageNode when the
image becomes available.
Parameters: uri - the requested URI. Parameters: rasterImageConsumer - the RasterImageConsumer whose image member should be set as a result of loading the image. |
needsURI | public void needsURI(String absoluteURI)(Code) | | Notifies the URILoader that the given uri will be needed.
Parameters: absoluteURI - the requested URI content. |
needsURIDocumentLoaded | protected void needsURIDocumentLoaded(String absoluteURI)(Code) | | In SVGImageLoader, we wait until the document has been loaded before
acting on required raster images.
Parameters: absoluteURI - the requested URI content. |
removeRasterImageConsumer | public void removeRasterImageConsumer(String absoluteURI, RasterImageConsumer imageNode)(Code) | | In cases where the ImageLoader may update the images associated to a URI,
RasterImageConsumer interested in updates need to de-register their
interest throught this method.
Parameters: absoluteURI - the URI the RasterImageConsumer is interested in. Parameters: imageNode - the RasterImageConsumer interested in the URI. |
setRasterImageConsumerImage | void setRasterImageConsumerImage(String uri, RasterImage image)(Code) | | Implementation helper.
Parameters: uri - the uri identifying the image resource. Parameters: image - the RasterImage to send to the consumers. |
|
|