| java.lang.Object javax.media.jai.CRIFImpl javax.media.jai.NullCRIF
NullCRIF | public class NullCRIF extends CRIFImpl (Code) | | A ContextualRenderedImageFactory representing an operation
which performs no processing of its image source(s) per se, i.e., a no-op.
The primary use of this image factory is as a utility class in
implementing operations which generate only non-image data via the
use of PropertyGenerator s. A PropertyGenerator
is defined as always contributing to the property environment of a given
operation when it is returned by the getPropertyGenerators()
method of the OperationDescriptor corresponding to the
operation.
The procedure to be followed to register an operation which generates
only non-image data as JAI image properties is as follows:
- Create a
PropertyGenerator which calculates the
non-image data given the operation node;
- Create an
OperationDescriptor the
getPropertyGenerators() method of which returns the
PropertyGenerator defined in the previous step;
- Register the
OperationDescriptor with the
OperationRegistry as usual by passing it to
registerOperationDescriptor() along with the operation name;
- Register a
NullCRIF as the image factory corresponding to
this operation.
The properties emitted by the associated PropertyGenerator (s)
will then be available by invoking getProperty() on the node
returned by JAI.create() using the registered operation name.
See Also: CRIFImpl See Also: java.awt.image.renderable.ContextualRenderedImageFactory since: JAI 1.1 |
Constructor Summary | |
public | NullCRIF() Constructs a NullCRIF . |
Method Summary | |
public RenderedImage | create(ParameterBlock args, RenderingHints renderHints) Returns the first source in the source list in the
ParameterBlock or the value returned by
getSourcelessImage() if there are no soures. | final public static synchronized RenderedImage | getSourcelessImage() Gets the value of the RenderedImage to be returned by the RIF.create()
method when there are no sources in the ParameterBlock . | final public static synchronized void | setSourcelessImage(RenderedImage im) Sets the value of the RenderedImage to be returned by
the RenderedImageFactory.create() method when there are
no sources in the ParameterBlock . |
NullCRIF | public NullCRIF()(Code) | | Constructs a NullCRIF . The operationName
in the superclass is set to null .
|
create | public RenderedImage create(ParameterBlock args, RenderingHints renderHints)(Code) | | Returns the first source in the source list in the
ParameterBlock or the value returned by
getSourcelessImage() if there are no soures.
throws: ClassCastException - if there are sources and the sourceat index zero is not a RenderedImage . |
getSourcelessImage | final public static synchronized RenderedImage getSourcelessImage()(Code) | | Gets the value of the RenderedImage to be returned by the RIF.create()
method when there are no sources in the ParameterBlock .
a RenderedImage or null . |
setSourcelessImage | final public static synchronized void setSourcelessImage(RenderedImage im)(Code) | | Sets the value of the RenderedImage to be returned by
the RenderedImageFactory.create() method when there are
no sources in the ParameterBlock .
Parameters: a - RenderedImage or null . |
|
|