Interface ImageHandler

All Superinterfaces:
CSSConstants, SVGConstants, SVGSyntax, XMLConstants
All Known Implementing Classes:
AbstractImageHandlerEncoder, DefaultImageHandler, ImageHandlerBase64Encoder, ImageHandlerJPEGEncoder, ImageHandlerPNGEncoder

public interface ImageHandler extends SVGSyntax
This interface allows the user of the Graphics2D SVG generator to decide how to handle images that it renders. For example, an implementation could decide to embed JPEG/PNG encoded images into SVG source document using the data protocol (RFC 1521, paragraph 5.2) Another option is to save images into JPEG/PNG files and store URI in SVG source.
Version:
$Id: ImageHandler.java 1733416 2016-03-03 07:07:13Z gadams $
See Also:
  • Method Details

    • handleImage

      void handleImage(Image image, Element imageElement, SVGGeneratorContext generatorContext)
      The handler should set the xlink:href tag and the width and height attributes.
    • handleImage

      void handleImage(RenderedImage image, Element imageElement, SVGGeneratorContext generatorContext)
      The handler should set the xlink:href tag and the width and height attributes.
    • handleImage

      void handleImage(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext)
      The handler should set the xlink:href tag and the width and height attributes.