org.apache.batik.bridge

Class SVGFeImageElementBridge

public class SVGFeImageElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feImage> element.
Constructor Summary
SVGFeImageElementBridge()
Constructs a new bridge for the <feImage> element.
Method Summary
FiltercreateFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap)
Creates a Filter primitive according to the specified parameters.
protected static FiltercreateRasterFeImage(BridgeContext ctx, Rectangle2D primitiveRegion, ParsedURL purl)
Returns a Filter that represents an raster image (JPG or PNG).
protected static FiltercreateSVGFeImage(BridgeContext ctx, Rectangle2D primitiveRegion, Element refElement, boolean toBBoxNeeded, Element filterElement, GraphicsNode filteredNode)
Returns a Filter that represents a svg document or element as an image.
StringgetLocalName()
Returns 'feImage'.

Constructor Detail

SVGFeImageElementBridge

public SVGFeImageElementBridge()
Constructs a new bridge for the <feImage> element.

Method Detail

createFilter

public Filter createFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap)
Creates a Filter primitive according to the specified parameters.

Parameters: ctx the bridge context to use filterElement the element that defines a filter filteredElement the element that references the filter filteredNode the graphics node to filter inputFilter the Filter that represents the current filter input if the filter chain. filterRegion the filter area defined for the filter chain the new node will be part of. filterMap a map where the mediator can map a name to the Filter it creates. Other FilterBridges can then access a filter node from the filterMap if they know its name.

createRasterFeImage

protected static Filter createRasterFeImage(BridgeContext ctx, Rectangle2D primitiveRegion, ParsedURL purl)
Returns a Filter that represents an raster image (JPG or PNG).

Parameters: ctx the bridge context primitiveRegion the primitive region purl the url of the image

createSVGFeImage

protected static Filter createSVGFeImage(BridgeContext ctx, Rectangle2D primitiveRegion, Element refElement, boolean toBBoxNeeded, Element filterElement, GraphicsNode filteredNode)
Returns a Filter that represents a svg document or element as an image.

Parameters: ctx the bridge context primitiveRegion the primitive region refElement the referenced element toBBoxNeeded true if there is a need to transform to ObjectBoundingBox space filterElement parent filter element filteredNode node to which the filter applies

getLocalName

public String getLocalName()
Returns 'feImage'.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.