org.apache.batik.bridge

Class SVGFeTurbulenceElementBridge

public class SVGFeTurbulenceElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feTurbulence> element.
Constructor Summary
SVGFeTurbulenceElementBridge()
Constructs a new bridge for the <feTurbulence> element.
Method Summary
protected static float[]convertBaseFrenquency(Element e, BridgeContext ctx)
Converts the 'baseFrequency' attribute of the specified feTurbulence element.
protected static booleanconvertStitchTiles(Element e, BridgeContext ctx)
Converts the 'stitchTiles' attribute of the specified feTurbulence element.
protected static booleanconvertType(Element e, BridgeContext ctx)
Converts the 'type' attribute of the specified feTurbulence element.
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 'feTurbulence'.

Constructor Detail

SVGFeTurbulenceElementBridge

public SVGFeTurbulenceElementBridge()
Constructs a new bridge for the <feTurbulence> element.

Method Detail

convertBaseFrenquency

protected static float[] convertBaseFrenquency(Element e, BridgeContext ctx)
Converts the 'baseFrequency' attribute of the specified feTurbulence element.

Parameters: e the feTurbulence element ctx the BridgeContext to use for error information

convertStitchTiles

protected static boolean convertStitchTiles(Element e, BridgeContext ctx)
Converts the 'stitchTiles' attribute of the specified feTurbulence element.

Parameters: e the feTurbulence element ctx the BridgeContext to use for error information

Returns: true if stitchTiles attribute is 'stitch', false otherwise

convertType

protected static boolean convertType(Element e, BridgeContext ctx)
Converts the 'type' attribute of the specified feTurbulence element.

Parameters: e the feTurbulence element ctx the BridgeContext to use for error information

Returns: true if type attribute value is 'fractalNoise', false otherwise

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 'feTurbulence'.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.