Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image
Class AbstractImageRenderer

java.lang.Object
  |
  +--oracle.cabo.image.AbstractImageRenderer
All Implemented Interfaces:
java.awt.image.ImageObserver, ImageRenderer
Direct Known Subclasses:
PainterImageRenderer

public abstract class AbstractImageRenderer
extends java.lang.Object
implements ImageRenderer, java.awt.image.ImageObserver

Abstract base class that implements ImageRenderer.

Subclasses should always create their images by calling createImage() so that the type of image


Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected AbstractImageRenderer()
          Create an AbstractImageRenderer.
 
Method Summary
protected  java.awt.image.BufferedImage createImage(int width, int height)
          Creates an Image with the given width and height.
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
          Implementation of ImageObserver.ImageUpdate().
abstract  java.awt.Image renderImage(ImageContext context, java.util.Dictionary requestedProperties, java.util.Dictionary responseProperties)
          Render the BufferedImage given the Dictionary of properties that describe what to render.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractImageRenderer

protected AbstractImageRenderer()
Create an AbstractImageRenderer.
Method Detail

renderImage

public abstract java.awt.Image renderImage(ImageContext context,
                                           java.util.Dictionary requestedProperties,
                                           java.util.Dictionary responseProperties)
Render the BufferedImage given the Dictionary of properties that describe what to render.
Specified by:
renderImage in interface ImageRenderer
Following copied from interface: oracle.cabo.image.ImageRenderer
Parameters:
context - The rendering context
requestedProperties - 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

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Implementation of ImageObserver.ImageUpdate().

Specified by:
imageUpdate in interface java.awt.image.ImageObserver
See Also:
ImageObserver

createImage

protected java.awt.image.BufferedImage createImage(int width,
                                                   int height)
Creates an Image with the given width and height. Subclasses should use this method to create images so that the correct memory representation is used.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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