org.apache.batik.bridge

Class SVGFeConvolveMatrixElementBridge

public class SVGFeConvolveMatrixElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feConvolveMatrix> element.
Constructor Summary
SVGFeConvolveMatrixElementBridge()
Constructs a new bridge for the <feConvolveMatrix> element.
Method Summary
protected static floatconvertDivisor(Element filterElement, float[] kernelMatrix, BridgeContext ctx)
Convert the 'divisor' attribute of the specified feConvolveMatrix filter primitive element.
protected static PadModeconvertEdgeMode(Element filterElement, BridgeContext ctx)
Convert the 'edgeMode' attribute of the specified feConvolveMatrix filter primitive element.
protected static float[]convertKernelMatrix(Element filterElement, int[] orderXY, BridgeContext ctx)
Convert the 'kernelMatrix' attribute of the specified feConvolveMatrix filter primitive element.
protected static double[]convertKernelUnitLength(Element filterElement, BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feConvolveMatrix filter primitive element.
protected static int[]convertOrder(Element filterElement, BridgeContext ctx)
Convert the 'order' attribute of the specified feConvolveMatrix filter primitive element.
protected static booleanconvertPreserveAlpha(Element filterElement, BridgeContext ctx)
Convert the 'preserveAlpha' attribute of the specified feConvolveMatrix filter primitive element.
protected static int[]convertTarget(Element filterElement, int[] orderXY, BridgeContext ctx)
Convert the 'targetX' and 'targetY' attributes of the specified feConvolveMatrix filter primitive 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 'feConvolveMatrix'.

Constructor Detail

SVGFeConvolveMatrixElementBridge

public SVGFeConvolveMatrixElementBridge()
Constructs a new bridge for the <feConvolveMatrix> element.

Method Detail

convertDivisor

protected static float convertDivisor(Element filterElement, float[] kernelMatrix, BridgeContext ctx)
Convert the 'divisor' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element kernelMatrix the value of the 'kernelMatrix' attribute ctx the BridgeContext to use for error information

convertEdgeMode

protected static PadMode convertEdgeMode(Element filterElement, BridgeContext ctx)
Convert the 'edgeMode' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element ctx the BridgeContext to use for error information

convertKernelMatrix

protected static float[] convertKernelMatrix(Element filterElement, int[] orderXY, BridgeContext ctx)
Convert the 'kernelMatrix' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element orderXY the value of the 'order' attribute ctx the BridgeContext to use for error information

convertKernelUnitLength

protected static double[] convertKernelUnitLength(Element filterElement, BridgeContext ctx)
Convert the 'kernelUnitLength' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element ctx the BridgeContext to use for error information

convertOrder

protected static int[] convertOrder(Element filterElement, BridgeContext ctx)
Convert the 'order' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element ctx the BridgeContext to use for error information

convertPreserveAlpha

protected static boolean convertPreserveAlpha(Element filterElement, BridgeContext ctx)
Convert the 'preserveAlpha' attribute of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element ctx the BridgeContext to use for error information

convertTarget

protected static int[] convertTarget(Element filterElement, int[] orderXY, BridgeContext ctx)
Convert the 'targetX' and 'targetY' attributes of the specified feConvolveMatrix filter primitive element.

Parameters: filterElement the feConvolveMatrix filter primitive element orderXY the value of the 'order' 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 'feConvolveMatrix'.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.