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 | Method and Description |
---|---|
void |
DefaultErrorHandler.handleError(SVGGraphics2DIOException ex)
This method handles the
SVGGraphics2DIOException . |
void |
ErrorHandler.handleError(SVGGraphics2DIOException ex)
This method handles the
SVGGraphics2DIOException . |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultCachedImageHandler.cacheBufferedImage(Element imageElement,
java.awt.image.BufferedImage buf,
SVGGeneratorContext generatorContext) |
abstract void |
AbstractImageHandlerEncoder.encodeImage(java.awt.image.BufferedImage buf,
java.io.File imageFile)
Derived classes should implement this method and encode the input
BufferedImage as needed
|
void |
ImageHandlerJPEGEncoder.encodeImage(java.awt.image.BufferedImage buf,
java.io.File imageFile)
Derived classes should implement this method and encode the input
BufferedImage as needed
|
void |
ImageHandlerPNGEncoder.encodeImage(java.awt.image.BufferedImage buf,
java.io.File imageFile)
Derived classes should implement this method and encode the input
BufferedImage as needed
|
void |
ImageHandlerBase64Encoder.encodeImage(java.awt.image.RenderedImage buf,
java.io.OutputStream os) |
void |
DefaultErrorHandler.handleError(SVGGraphics2DIOException ex)
This method handles the
SVGGraphics2DIOException . |
void |
ErrorHandler.handleError(SVGGraphics2DIOException ex)
This method handles the
SVGGraphics2DIOException . |
protected void |
AbstractImageHandlerEncoder.handleHREF(java.awt.Image image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
void |
DefaultCachedImageHandler.handleHREF(java.awt.Image image,
Element imageElement,
SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and
height attributes.
|
protected void |
DefaultImageHandler.handleHREF(java.awt.Image image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
void |
ImageHandlerBase64Encoder.handleHREF(java.awt.Image image,
Element imageElement,
SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and
height attributes.
|
protected void |
AbstractImageHandlerEncoder.handleHREF(java.awt.image.renderable.RenderableImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
protected void |
DefaultCachedImageHandler.handleHREF(java.awt.image.renderable.RenderableImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This method will delegate to the
handleHREF which
uses a RenderedImage |
protected void |
DefaultImageHandler.handleHREF(java.awt.image.renderable.RenderableImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
void |
ImageHandlerBase64Encoder.handleHREF(java.awt.image.renderable.RenderableImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
The handler should set the xlink:href tag and the width and
height attributes.
|
protected void |
AbstractImageHandlerEncoder.handleHREF(java.awt.image.RenderedImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
protected void |
DefaultCachedImageHandler.handleHREF(java.awt.image.RenderedImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
protected void |
DefaultImageHandler.handleHREF(java.awt.image.RenderedImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This template method should set the xlink:href attribute on the input
Element parameter
|
void |
ImageHandlerBase64Encoder.handleHREF(java.awt.image.RenderedImage image,
Element imageElement,
SVGGeneratorContext generatorContext)
This version of handleHREF encodes the input image into a
PNG image whose bytes are then encoded with Base64.
|
java.lang.String |
ImageCacher.lookup(java.io.ByteArrayOutputStream os,
int width,
int height,
SVGGeneratorContext ctx)
Checks if the image is already in the cache, and
adds it if not.
|
void |
SVGGraphics2D.stream(Element svgRoot,
java.io.Writer writer) |
void |
SVGGraphics2D.stream(Element svgRoot,
java.io.Writer writer,
boolean useCss,
boolean escaped) |
void |
SVGGraphics2D.stream(java.lang.String svgFileName) |
void |
SVGGraphics2D.stream(java.lang.String svgFileName,
boolean useCss) |
void |
SVGGraphics2D.stream(java.io.Writer writer) |
void |
SVGGraphics2D.stream(java.io.Writer writer,
boolean useCss) |
void |
SVGGraphics2D.stream(java.io.Writer writer,
boolean useCss,
boolean escaped) |
Constructor and Description |
---|
AbstractImageHandlerEncoder(java.lang.String imageDir,
java.lang.String urlRoot) |
CachedImageHandlerJPEGEncoder(java.lang.String imageDir,
java.lang.String urlRoot) |
CachedImageHandlerPNGEncoder(java.lang.String imageDir,
java.lang.String urlRoot) |
ImageHandlerJPEGEncoder(java.lang.String imageDir,
java.lang.String urlRoot) |
ImageHandlerPNGEncoder(java.lang.String imageDir,
java.lang.String urlRoot) |
Copyright © 2022 Apache Software Foundation. All Rights Reserved.