Package org.apache.batik.svggen
Class DefaultExtensionHandler
java.lang.Object
org.apache.batik.svggen.DefaultExtensionHandler
- All Implemented Interfaces:
ExtensionHandler
This implementation of the ExtensionHandler interface always
returns null Nodes. In other words, it does not support any
Java 2D API extensions.
- Version:
- $Id: DefaultExtensionHandler.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleComposite
(Composite composite, SVGGeneratorContext generatorContext) handleFilter
(BufferedImageOp filter, Rectangle filterRect, SVGGeneratorContext generatorContext) handlePaint
(Paint paint, SVGGeneratorContext generatorContext)
-
Constructor Details
-
DefaultExtensionHandler
public DefaultExtensionHandler()
-
-
Method Details
-
handlePaint
- Specified by:
handlePaint
in interfaceExtensionHandler
- Parameters:
paint
- Custom Paint to be converted to SVGgeneratorContext
- allows the handler to build DOM objects as needed.- Returns:
- an SVGPaintDescriptor
-
handleComposite
public SVGCompositeDescriptor handleComposite(Composite composite, SVGGeneratorContext generatorContext) - Specified by:
handleComposite
in interfaceExtensionHandler
- Parameters:
composite
- Custom Composite to be converted to SVG.generatorContext
- allows the handler to build DOM objects as needed.- Returns:
- an SVGCompositeDescriptor which contains a valid SVG filter, or null if the composite cannot be handled
-
handleFilter
public SVGFilterDescriptor handleFilter(BufferedImageOp filter, Rectangle filterRect, SVGGeneratorContext generatorContext) - Specified by:
handleFilter
in interfaceExtensionHandler
- Parameters:
filter
- Custom filter to be converted to SVG.filterRect
- Rectangle, in device space, that defines the area to which filtering applies. May be null, meaning that the area is undefined.generatorContext
- allows the handler to build DOM objects as needed.- Returns:
- an SVGFilterDescriptor which contains a valid SVG filter, or null if the composite cannot be handled
-