Class Scale2CRIF

Object
CRIFImpl
Scale2CRIF
All Implemented Interfaces:
ContextualRenderedImageFactory, RenderedImageFactory

public class Scale2CRIF extends CRIFImpl
  • Constructor Details

    • Scale2CRIF

      public Scale2CRIF()
      Constructor.
  • Method Details

    • 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 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 CRIFImpl
      Parameters:
      renderContext - The rendering information associated with this rendering.
      paramBlock - The parameters used to create the image.
      Returns:
      A RenderedImage.
    • 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 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.
      Returns:
      The RenderContext to be used to render the given source.
    • 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 CRIFImpl
      Parameters:
      paramBlock - A ParameterBlock containing the sources and parameters of the operation.
      Returns:
      A Rectangle2D specifying the bounding box.