| java.lang.Object javax.media.jai.CRIFImpl
All known Subclasses: com.sun.media.jai.opimage.BandSelectCRIF, com.sun.media.jai.opimage.ScaleCRIF, com.sun.media.jai.opimage.MultiplyComplexCRIF, com.sun.media.jai.opimage.FilterCRIF, com.sun.media.jai.opimage.RotateCRIF, com.sun.media.jai.opimage.CompositeCRIF, com.sun.media.jai.opimage.PeriodicShiftCRIF, com.sun.media.jai.opimage.CropCRIF, com.sun.media.jai.opimage.IDCTCRIF, com.sun.media.jai.opimage.SubtractFromConstCRIF, com.sun.media.jai.opimage.MinCRIF, com.sun.media.jai.opimage.AndConstCRIF, ca.forklabs.media.jai.opimage.AbstractCRIF, com.sun.media.jai.opimage.TransposeCRIF, com.sun.media.jai.opimage.SubtractCRIF, com.sun.media.jai.opimage.MagnitudeCRIF, com.sun.media.jai.opimage.OrConstCRIF, com.sun.media.jai.opimage.MultiplyCRIF, com.sun.media.jai.imageioimpl.ImageWriteCRIF, com.sun.media.jai.opimage.LookupCRIF, com.sun.media.jai.opimage.SubsampleBinaryToGrayCRIF, com.sun.media.jai.opimage.PhaseCRIF, com.sun.media.jai.opimage.PiecewiseCRIF, com.sun.media.jai.opimage.DCTCRIF, com.sun.media.jai.opimage.ConjugateCRIF, com.sun.media.jai.opimage.TranslateCRIF, com.sun.media.jai.opimage.RescaleCRIF, com.sun.media.jai.opimage.AndCRIF, com.sun.media.jai.opimage.IIPCRIF, com.sun.media.jai.opimage.DivideComplexCRIF, com.sun.media.jai.opimage.AddConstCRIF, javax.media.jai.NullCRIF, com.sun.media.jai.opimage.ClampCRIF, com.sun.media.jai.opimage.AffineCRIF, com.sun.media.jai.opimage.MatchCDFCRIF, com.sun.media.jai.opimage.SubtractConstCRIF, com.sun.media.jai.opimage.RenderableCRIF, com.sun.media.jai.opimage.OverlayCRIF, com.sun.media.jai.opimage.XorConstCRIF, com.sun.media.jai.opimage.DFTCRIF, com.sun.media.jai.opimage.IDFTCRIF, com.sun.media.jai.opimage.MultiplyConstCRIF, com.sun.media.jai.opimage.BinarizeCRIF, com.sun.media.jai.opimage.FormatCRIF, com.sun.media.jai.opimage.BandMergeCRIF, com.sun.media.jai.opimage.ConstantCRIF, com.sun.media.jai.opimage.BandCombineCRIF, com.sun.media.jai.opimage.AbsoluteCRIF, com.sun.media.jai.opimage.MagnitudeSquaredCRIF, com.sun.media.jai.opimage.ColorConvertCRIF, com.sun.media.jai.opimage.XorCRIF, com.sun.media.jai.opimage.DivideIntoConstCRIF, com.sun.media.jai.opimage.LogCRIF, com.sun.media.jai.opimage.OrCRIF, com.sun.media.jai.opimage.DivideCRIF, com.sun.media.jai.imageioimpl.ImageReadCRIF, com.sun.media.jai.opimage.NotCRIF, com.sun.media.jai.opimage.ThresholdCRIF, com.sun.media.jai.opimage.DivideByConstCRIF, com.sun.media.jai.opimage.AddCollectionCRIF, com.sun.media.jai.opimage.AddCRIF, com.sun.media.jai.opimage.SubsampleAverageCRIF, com.sun.media.jai.opimage.PolarToComplexCRIF, com.sun.media.jai.opimage.ExpCRIF, com.sun.media.jai.opimage.InvertCRIF, com.sun.media.jai.opimage.MaxCRIF,
CRIFImpl | abstract public class CRIFImpl implements ContextualRenderedImageFactory(Code) | | A utility class to minimize in most cases the effort required to implement
the ContextualRenderedImageFactory (CRIF) of an operation.
An extender of this class is required to implement only the method
RenderedImage create(ParameterBlock, RenderingHints)
defined in the RenderedImageFactory interface. The remaining
methods may be overridden insofar as this is necessary to obtain behavior
different from that provided by default.
See Also: java.awt.image.renderable.ContextualRenderedImageFactory See Also: java.awt.image.renderable.RenderedImageFactory since: JAI 1.1 |
Field Summary | |
protected String | operationName If non-null , this name will be used as a parameter to
JAI.create() in
create(RenderContext,ParameterBlock) ; otherwise the RIF
create(ParameterBlock,RenderingHints) method implemented
in the extending class will be invoked. |
Method Summary | |
abstract public RenderedImage | create(ParameterBlock paramBlock, RenderingHints renderHints) The RenderedImageFactory create() method
which must be implemented by concrete subclasses. | public RenderedImage | create(RenderContext renderContext, ParameterBlock paramBlock) Creates a RenderedImage from the renderable layer.
If operationName is non-null ,
JAI.create() will be invoked using the supplied
ParameterBlock and the RenderingHints
contained in the RenderContext . | public Rectangle2D | getBounds2D(ParameterBlock paramBlock) Returns the bounding box for the output of the operation. | public Object | getProperty(ParameterBlock paramBlock, String name) Returns the appropriate instance of the property with the indicated
name.
The implementation in this class always returns
java.awt.Image.UndefinedProperty since
no properties are defined by default.
Parameters: paramBlock - A ParameterBlock containing thesources and parameters of the operation. Parameters: name - A String containing the desired property name. | public String[] | getPropertyNames() Returns the valid property names for the operation. | public boolean | isDynamic() Returns true if successive renderings with the same
arguments may produce different results. | public RenderContext | mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) Maps the destination RenderContext into a
RenderContext for each source. |
operationName | protected String operationName(Code) | | If non-null , this name will be used as a parameter to
JAI.create() in
create(RenderContext,ParameterBlock) ; otherwise the RIF
create(ParameterBlock,RenderingHints) method implemented
in the extending class will be invoked.
|
CRIFImpl | public CRIFImpl()(Code) | | Default constructor. The operation name is set to null .
|
CRIFImpl | public CRIFImpl(String operationName)(Code) | | Constructor. The operation name is set to the specified value
which may be null .
|
create | abstract public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderHints)(Code) | | The RenderedImageFactory create() method
which must be implemented by concrete subclasses.
|
create | public RenderedImage create(RenderContext renderContext, ParameterBlock paramBlock)(Code) | | Creates a RenderedImage from the renderable layer.
If operationName is non-null ,
JAI.create() will be invoked using the supplied
ParameterBlock and the RenderingHints
contained in the RenderContext . If
operationName is null , or
JAI.create() returns null , the
create(ParameterBlock,RenderingHints) method defined
in the extending class will be invoked.
Parameters: renderContext - The rendering information associated withthis rendering. Parameters: paramBlock - The parameters used to create the image. A RenderedImage . |
getBounds2D | public Rectangle2D getBounds2D(ParameterBlock paramBlock)(Code) | | Returns the bounding box for the output of the operation. The
implementation in this class computes the bounding box as the
intersection the bounding boxes of all the (renderable sources).
Parameters: paramBlock - A ParameterBlock containing thesources and parameters of the operation. A Rectangle2D specifying the bounding box. |
getProperty | public Object getProperty(ParameterBlock paramBlock, String name)(Code) | | Returns the appropriate instance of the property with the indicated
name.
The implementation in this class always returns
java.awt.Image.UndefinedProperty since
no properties are defined by default.
Parameters: paramBlock - A ParameterBlock containing thesources and parameters of the operation. Parameters: name - A String containing the desired property name. the value java.awt.Image.UndefinedProperty indicating that the property is undefined. |
getPropertyNames | public String[] getPropertyNames()(Code) | | Returns the valid property names for the operation. The
implementation in this class always returns null
since no properties are associated with the operation by
default.
null indicating that no properties are defined. |
isDynamic | public boolean isDynamic()(Code) | | Returns true if successive renderings with the same
arguments may produce different results. The implementation in this
class always returns false so as to enable caching
of renderings by default. CRIFs that do implement dynamic
rendering behavior must override this method.
false indicating that the rendering is static. |
mapRenderContext | public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image)(Code) | | Maps the destination RenderContext into a
RenderContext for each source. The
implementation in this class simply returns the
RenderContext passed in by the caller.
Parameters: i - The index of the source image. Parameters: renderContext - The RenderContext being applied tothe operation. Parameters: paramBlock - A ParameterBlock containing thesources and parameters of the operation. Parameters: image - The RenderableImage being rendered. The RenderContext to be used to render thegiven source. |
|
|