it.geosolutions.jaiext.scale
Class ScaleCRIF
java.lang.Object
javax.media.jai.CRIFImpl
it.geosolutions.jaiext.scale.ScaleCRIF
- All Implemented Interfaces:
- ContextualRenderedImageFactory, RenderedImageFactory
public class ScaleCRIF
- extends javax.media.jai.CRIFImpl
- See Also:
ScaleOpImage
Fields inherited from class javax.media.jai.CRIFImpl |
operationName |
Methods inherited from class javax.media.jai.CRIFImpl |
getProperty, getPropertyNames, isDynamic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScaleCRIF
public ScaleCRIF()
- Constructor.
create
public RenderedImage create(ParameterBlock paramBlock,
RenderingHints renderHints)
- Creates a new instance of ScaleOpImage in the rendered layer. This method satisfies the implementation of RIF.
- Specified by:
create
in interface RenderedImageFactory
- Specified by:
create
in class javax.media.jai.CRIFImpl
- Parameters:
paramBlock
- The source image, the X and Y scale factor, and the interpolation method for resampling.
create
public RenderedImage create(RenderContext renderContext,
ParameterBlock paramBlock)
- Creates a new instance of
AffineOpImage
in the renderable layer. This method satisfies the implementation of CRIF.
- Specified by:
create
in interface ContextualRenderedImageFactory
- Overrides:
create
in class javax.media.jai.CRIFImpl
mapRenderContext
public RenderContext mapRenderContext(int i,
RenderContext renderContext,
ParameterBlock paramBlock,
RenderableImage image)
- Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF.
- Specified by:
mapRenderContext
in interface ContextualRenderedImageFactory
- Overrides:
mapRenderContext
in class javax.media.jai.CRIFImpl
- Parameters:
i
- The index of the source image.renderContext
- The renderContext being applied to the operation.paramBlock
- The ParameterBlock containing the sources and the translation factors.image
- The RenderableImageOp from which this method was called.
getBounds2D
public Rectangle2D getBounds2D(ParameterBlock paramBlock)
- Gets the bounding box for the output of
ScaleOpImage
. This method satisfies the implementation of CRIF.
- Specified by:
getBounds2D
in interface ContextualRenderedImageFactory
- Overrides:
getBounds2D
in class javax.media.jai.CRIFImpl
Copyright © 2006–2014 GeoSolutions. All rights reserved.