org.apache.batik.util.awt.svg
Class DefaultExtensionHandler

java.lang.Object
  |
  +--org.apache.batik.util.awt.svg.DefaultExtensionHandler
All Implemented Interfaces:
ExtensionHandler

public class DefaultExtensionHandler
extends java.lang.Object
implements ExtensionHandler

This implementation of the ExtensionHandler interface always returns null Nodes. In other words, it does not support any Java 2D API extensions.

See Also:
ExtensionHandler

Constructor Summary
DefaultExtensionHandler()
           
 
Method Summary
 SVGCompositeDescriptor handleComposite(java.awt.Composite composite, Document domFactory)
           
 SVGFilterDescriptor handleFilter(java.awt.image.BufferedImageOp filter, java.awt.Rectangle filterRect, Document domFactory)
           
 SVGPaintDescriptor handlePaint(java.awt.Paint paint, Document domFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExtensionHandler

public DefaultExtensionHandler()
Method Detail

handlePaint

public SVGPaintDescriptor handlePaint(java.awt.Paint paint,
                                      Document domFactory)
Specified by:
handlePaint in interface ExtensionHandler
Parameters:
paint - Custom Paint to be converted to SVG
domFactory - allows the handler to build DOM objects as needed.
Returns:
an SVGPaintDescriptor

handleComposite

public SVGCompositeDescriptor handleComposite(java.awt.Composite composite,
                                              Document domFactory)
Specified by:
handleComposite in interface ExtensionHandler
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)
Specified by:
handleFilter in interface ExtensionHandler
Parameters:
filter - Custom filter to be converted to SVG.
domFactory - allows the handler to build DOM objects as needed.
filterRect - Rectangle, in device space, that defines the area to which filtering applies. May be null, meaning that the area is undefined.
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.