| Package | Description |
|---|---|
| org.apache.batik.svggen |
Provides an API on top of the
AbstractGraphics2D to translate
Java 2D primitives into the SVG format. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractImageHandlerEncoder |
This abstract implementation of the ImageHandler interface
is intended to be the base class for ImageHandlers that generate
image files for all the images they handle.
|
class |
DefaultImageHandler |
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.
|
class |
ImageHandlerBase64Encoder |
This implementation of ImageHandler encodes the input image as
a PNG image first, then encodes the PNG image using Base64
encoding and uses the result to encoder the image url using
the data protocol.
|
class |
ImageHandlerJPEGEncoder |
This implementation of the abstract AbstractImageHandlerEncoder
class creates JPEG images in the image directory and sets the
url pointing to that file in the xlink:href attributes of the
image elements it handles.
|
class |
ImageHandlerPNGEncoder |
This implementation of the abstract AbstractImageHandlerEncoder
class creates PNG images in the image directory and sets the
url pointing to that file in the xlink:href attributes of the
image elements it handles.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected ImageHandler |
SimpleImageHandler.imageHandler |
ImageHandler which handles xlink:href attribute setting |
| Modifier and Type | Method | Description |
|---|---|---|
ImageHandler |
SVGGeneratorContext.getImageHandler() |
Returns the
ImageHandler that
has been set. |
ImageHandler |
SVGGraphics2D.getImageHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
static SVGGeneratorContext |
SVGGraphics2D.buildSVGGeneratorContext(org.w3c.dom.Document domFactory,
ImageHandler imageHandler,
ExtensionHandler extensionHandler) |
Helper method to create an
SVGGeneratorContext from the
constructor parameters. |
void |
SVGGeneratorContext.setImageHandler(ImageHandler imageHandler) |
Sets the
ImageHandler
to be used. |
| Constructor | Description |
|---|---|
SimpleImageHandler(ImageHandler imageHandler) |
|
SVGGraphics2D(org.w3c.dom.Document domFactory,
ImageHandler imageHandler,
ExtensionHandler extensionHandler,
boolean textAsShapes) |
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.