ewe.ui.formatted
Class StreamImageResolver

java.lang.Object
  extended byewe.ui.formatted.StreamImageResolver
All Implemented Interfaces:
ImageResolver

public class StreamImageResolver
extends Object
implements ImageResolver


Constructor Summary
StreamImageResolver()
           
 
Method Summary
protected  Tag getStreamFor(String imageName)
           
 Handle resolveImage(PropertyList imageProperties, boolean allowAnimatedImages, Dimension maxSize)
          Resolve the image.
 Handle resolveImage(String name, boolean allowAnimatedImages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

StreamImageResolver

public StreamImageResolver()
Method Detail

getStreamFor

protected Tag getStreamFor(String imageName)
                    throws IOException
Throws:
IOException

resolveImage

public Handle resolveImage(String name,
                           boolean allowAnimatedImages)

resolveImage

public Handle resolveImage(PropertyList imageProperties,
                           boolean allowAnimatedImages,
                           Dimension maxSize)
Description copied from interface: ImageResolver
Resolve the image.

Specified by:
resolveImage in interface ImageResolver
Parameters:
imageProperties - The properties for the Image. This should contain at least one property called "src".
allowAnimatedImages - If this is true then animated images will be resolved into an AnimatedIcon.
maxSize - An optional limit to the size of the image returned.
Returns:
A Handle that can be used to monitor the progress of the resolution. When the Handle status reports Handle.Succeeded then the returnValue of the Handle will hold the resolved image.