public class NullCRIF
extends javax.media.jai.CRIFImpl
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. Another use of this class is the possibility to put this OpImage at the sink of a RenderedOp chain for caching the
tiles of the last OpImage without caching the tiles of the previous calculations.
Constructor and Description |
---|
NullCRIF()
Constructs a
NullCRIF . |
Modifier and Type | Method and Description |
---|---|
RenderedImage |
create(ParameterBlock pb,
RenderingHints renderHints)
Returns the first source in the source list in the
ParameterBlock or the value returned by getSourcelessImage() if
there are no sources. |
static RenderedImage |
getSourcelessImage()
Gets the value of the RenderedImage to be returned by the RIF.create() method when there are no sources in the
ParameterBlock . |
static 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 . |
public NullCRIF()
NullCRIF
. The operationName
in the superclass is set to null
.public static final void setSourcelessImage(RenderedImage im)
RenderedImage
to be returned by the RenderedImageFactory.create()
method when there are no
sources in the ParameterBlock
.a
- RenderedImage
or null
.public static final RenderedImage getSourcelessImage()
ParameterBlock
.RenderedImage
or null
.public RenderedImage create(ParameterBlock pb, RenderingHints renderHints)
ParameterBlock
or the value returned by getSourcelessImage()
if
there are no sources.create
in interface RenderedImageFactory
create
in class javax.media.jai.CRIFImpl
ClassCastException
- if there are sources and the source at index zero is not a RenderedImage
.Copyright © 2006–2018 GeoSolutions. All rights reserved.