oracle.cabo.image
Interface ImageRenderer
- All Known Implementing Classes:
- AbstractImageRenderer, ColorizedIconImageRenderer, FlippedIconImageRenderer
- public interface ImageRenderer
ImageRenderer defines an interface for generated an AWT Image from
a set of properties describing the desired image.
Method Summary |
java.awt.Image |
renderImage(ImageContext context,
java.util.Dictionary requestedProperties,
java.util.Dictionary responseProperties)
Render and return an image given the dictionary of
properties that describe what to render. |
renderImage
public java.awt.Image renderImage(ImageContext context,
java.util.Dictionary requestedProperties,
java.util.Dictionary responseProperties)
- Render and return an image given the dictionary of
properties that describe what to render. In addition
to returning the rendered image, the image renderer may
store additional properties describing the generated image
(such as its width and height) in the provided responseProperties
dictionary.
- Parameters:
context
- The rendering contextrequestedProperties
- Dictionary of requested properties.
The keys for this dictionary are the KEY constants defined
in ImageConstants.responseProperties
- Dictionary for response properties.
The keys for this dictionary are the RESPONSE_KEY constants
defined in ImageConstants.- Returns:
- an Image containing the rendered results
- See Also:
ImageContext
,
ImageConstants