org.apache.batik.bridge

Class SVGFeMergeElementBridge

public class SVGFeMergeElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feMerge> element.
Nested Class Summary
static classSVGFeMergeElementBridge.SVGFeMergeNodeElementBridge
Bridge class for the <feMergeNode> element.
Constructor Summary
SVGFeMergeElementBridge()
Constructs a new bridge for the <feMerge> 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 ListextractFeMergeNode(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns a list of Filter objects that represents the feMergeNode of the specified feMerge filter element.
StringgetLocalName()
Returns 'feMerge'.

Constructor Detail

SVGFeMergeElementBridge

public SVGFeMergeElementBridge()
Constructs a new bridge for the <feMerge> 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.

extractFeMergeNode

protected static List extractFeMergeNode(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns a list of Filter objects that represents the feMergeNode of the specified feMerge filter element.

Parameters: filterElement the feMerge filter element filteredElement the filtered element filteredNode the filtered graphics node inputFilter the Filter that represents the current filter input if the filter chain. filterMap the filter map that contains named filter primitives ctx the bridge context

getLocalName

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