org.apache.batik.util.awt.svg
Interface ExtensionHandler
- All Known Implementing Classes:
- DefaultExtensionHandler
- public interface ExtensionHandler
The ExtensionHandler interface allows the user to handler
Java 2D API extensions that map to SVG concepts (such as custom
Paints, Composites or BufferedImageOp filters.
handlePaint
public SVGPaintDescriptor handlePaint(java.awt.Paint paint,
Document domFactory)
- Parameters:
paint
- Custom Paint to be converted to SVGdomFactory
- allows the handler to build DOM objects as needed.- Returns:
- an SVGPaintDescriptor
handleComposite
public SVGCompositeDescriptor handleComposite(java.awt.Composite composite,
Document domFactory)
- Parameters:
composite
- Custom Composite to be converted to SVG.domFactory
- 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(java.awt.image.BufferedImageOp filter,
java.awt.Rectangle filterRect,
Document domFactory)
- 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.domFactory
- 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
Copyright © 2000 Apache Software Foundation. All Rights Reserved.