Class SVGBufferedImageOp

java.lang.Object
org.apache.batik.svggen.AbstractSVGFilterConverter
org.apache.batik.svggen.SVGBufferedImageOp
All Implemented Interfaces:
XMLConstants, ErrorConstants, SVGFilterConverter, SVGSyntax, CSSConstants, SVGConstants

public class SVGBufferedImageOp extends AbstractSVGFilterConverter
Utility class that converts a BufferedImageOp object into an SVG filter.
Version:
$Id: SVGBufferedImageOp.java 1733416 2016-03-03 07:07:13Z gadams $
See Also:
  • Field Details

    • svgLookupOp

      private SVGLookupOp svgLookupOp
      All LookupOp convertion is handed to svgLookupOp
    • svgRescaleOp

      private SVGRescaleOp svgRescaleOp
      All RescaleOp convertion is handed to svgRescaleOp
    • svgConvolveOp

      private SVGConvolveOp svgConvolveOp
      All ConvolveOp convertion is handed to svgConvolveOp
    • svgCustomBufferedImageOp

      private SVGCustomBufferedImageOp svgCustomBufferedImageOp
      All custom BufferedImageOp convertion is handed to ' svgCustomBufferedImageOp.
  • Constructor Details

    • SVGBufferedImageOp

      public SVGBufferedImageOp(SVGGeneratorContext generatorContext)
      Parameters:
      generatorContext - used by the converter to create Element and other needed DOM objects and to handle unknown BufferedImageOp implementations.
  • Method Details

    • getDefinitionSet

      public List getDefinitionSet()
      Specified by:
      getDefinitionSet in interface SVGFilterConverter
      Overrides:
      getDefinitionSet in class AbstractSVGFilterConverter
      Returns:
      Set of filter Elements defining the BufferedImageOp this Converter has processed since it was created.
    • getLookupOpConverter

      public SVGLookupOp getLookupOpConverter()
    • getRescaleOpConverter

      public SVGRescaleOp getRescaleOpConverter()
    • getConvolveOpConverter

      public SVGConvolveOp getConvolveOpConverter()
    • getCustomBufferedImageOpConverter

      public SVGCustomBufferedImageOp getCustomBufferedImageOpConverter()
    • toSVG

      public SVGFilterDescriptor toSVG(BufferedImageOp op, Rectangle filterRect)
      Description copied from interface: SVGFilterConverter
      Converts a Java 2D API BufferedImageOp into a set of attribute/value pairs and related definitions
      Parameters:
      op - BufferedImageOp to be converted to SVG
      filterRect - Rectangle, in device space, that defines the area to which filtering applies. May be null, meaning that the area is undefined.
      Returns:
      an SVGFilterDescriptor representing the SVG filter equivalent of the input BufferedImageOp
      See Also: