org.apache.batik.bridge

Class SVGFeDisplacementMapElementBridge

public class SVGFeDisplacementMapElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feDisplacementMap> element.
Constructor Summary
SVGFeDisplacementMapElementBridge()
Constructs a new bridge for the <feDisplacementMap> element.
Method Summary
protected static ARGBChannelconvertChannelSelector(Element filterElement, String attrName, ARGBChannel defaultChannel, BridgeContext ctx)
Returns the channel for the specified feDisplacementMap filter primitive attribute, considering the specified attribute name.
FiltercreateFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap)
Creates a Filter primitive according to the specified parameters.
StringgetLocalName()
Returns 'feDisplacementMap'.

Constructor Detail

SVGFeDisplacementMapElementBridge

public SVGFeDisplacementMapElementBridge()
Constructs a new bridge for the <feDisplacementMap> element.

Method Detail

convertChannelSelector

protected static ARGBChannel convertChannelSelector(Element filterElement, String attrName, ARGBChannel defaultChannel, BridgeContext ctx)
Returns the channel for the specified feDisplacementMap filter primitive attribute, considering the specified attribute name.

Parameters: filterElement the feDisplacementMap filter primitive element attrName the name of the channel attribute ctx the BridgeContext to use for error information

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.

getLocalName

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