|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.image.AbstractImageRenderer | +--oracle.cabo.image.PainterImageRenderer
ImageRenderer implementation that uses Painter objects to render an image. Clients must provide a Painter object in the constructor.
The PainterImageRenderer creates a PaintContext object in response to a call to renderImage(). The PaintContext object will obtain all its data about the state of the BufferedImage by using the Dictionary of properties. Clients should set the properties in the Dictionary using the given key constants described below.
Clients can pass custom properties by using their own key objects.
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
PainterImageRenderer(Painter painter)
Create a PainterImageRenderer that uses the given Painter to create a BufferedImage. |
Method Summary | |
protected PaintContext |
createPaintContext(ImageContext imageContext,
java.awt.image.BufferedImage image,
java.util.Dictionary requestedProperties,
java.util.Dictionary responseProperties)
|
protected void |
disposePaintContext(PaintContext context)
|
protected java.awt.Color |
getPaintBackground(ImageContext context,
java.util.Dictionary d)
Returns the background color to use when painting an image with the specified dictionary. |
protected java.lang.Object |
getPaintData(java.lang.Object key,
java.util.Dictionary d)
|
Painter |
getPainter()
Get the Painter used to create the image. |
protected Painter |
getPainter(ImageContext imageContext,
java.util.Dictionary requestedProperties)
Returns the Painter to use for the specified request. |
protected java.awt.Font |
getPaintFont(java.util.Dictionary d)
Returns the font color to use when painting an image with the specified dictionary. |
protected java.awt.Color |
getPaintForeground(ImageContext context,
java.util.Dictionary d)
Returns the foreground color to use when painting an image with the specified dictionary. |
protected boolean |
isRenderable(ImageContext imageContext,
java.util.Dictionary requestedProperties)
Tests whether the requested image can be rendered. |
java.awt.Image |
renderImage(ImageContext imageContext,
java.util.Dictionary requestedProperties,
java.util.Dictionary responseProperties)
Render the image given the Dictionary of properties that describe what to render. |
Methods inherited from class oracle.cabo.image.AbstractImageRenderer |
createImage, imageUpdate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PainterImageRenderer(Painter painter)
Method Detail |
public Painter getPainter()
public java.awt.Image renderImage(ImageContext imageContext, java.util.Dictionary requestedProperties, java.util.Dictionary responseProperties)
renderImage
in class AbstractImageRenderer
oracle.cabo.image.ImageRenderer
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.ImageContext
,
ImageConstants
protected Painter getPainter(ImageContext imageContext, java.util.Dictionary requestedProperties)
protected boolean isRenderable(ImageContext imageContext, java.util.Dictionary requestedProperties)
protected java.awt.Color getPaintForeground(ImageContext context, java.util.Dictionary d)
protected java.awt.Color getPaintBackground(ImageContext context, java.util.Dictionary d)
protected java.awt.Font getPaintFont(java.util.Dictionary d)
protected java.lang.Object getPaintData(java.lang.Object key, java.util.Dictionary d)
protected PaintContext createPaintContext(ImageContext imageContext, java.awt.image.BufferedImage image, java.util.Dictionary requestedProperties, java.util.Dictionary responseProperties)
protected void disposePaintContext(PaintContext context)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |