org.apache.batik.svggen

Class DefaultImageHandler

public class DefaultImageHandler extends Object implements ImageHandler, ErrorConstants, XMLConstants

This class provides a default implementation of the ImageHandler interface simply puts a place holder in the xlink:href attribute and sets the width and height of the element.

See Also: SVGGraphics2D

Constructor Summary
DefaultImageHandler()
Build a DefaultImageHandler.
Method Summary
protected voidhandleHREF(Image image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter
protected voidhandleHREF(RenderedImage image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter
protected voidhandleHREF(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter
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.

Constructor Detail

DefaultImageHandler

public DefaultImageHandler()
Build a DefaultImageHandler.

Method Detail

handleHREF

protected void handleHREF(Image image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter

handleHREF

protected void handleHREF(RenderedImage image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter

handleHREF

protected void handleHREF(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input Element parameter

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.