org.apache.batik.svggen

Interface ImageHandler

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.

See Also: SVGGraphics2D

Method Summary
voidhandleImage(Image image, Element imageElement, SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and height attributes.
voidhandleImage(RenderedImage image, Element imageElement, SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and height attributes.
voidhandleImage(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and height attributes.

Method Detail

handleImage

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

handleImage

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

handleImage

public void handleImage(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and height attributes.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.