org.apache.batik.bridge

Class SVGFeColorMatrixElementBridge

public class SVGFeColorMatrixElementBridge extends AbstractSVGFilterPrimitiveElementBridge

Bridge class for the <feColorMatrix> element.
Constructor Summary
SVGFeColorMatrixElementBridge()
Constructs a new bridge for the <feColorMatrix> element.
Method Summary
protected static intconvertType(Element filterElement, BridgeContext ctx)
Converts the type of the specified color matrix filter primitive.
protected static floatconvertValuesToHueRotate(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'hueRotate' type.
protected static float[][]convertValuesToMatrix(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'matrix' type.
protected static floatconvertValuesToSaturate(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'saturate' type.
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 'feColorMatrix'.

Constructor Detail

SVGFeColorMatrixElementBridge

public SVGFeColorMatrixElementBridge()
Constructs a new bridge for the <feColorMatrix> element.

Method Detail

convertType

protected static int convertType(Element filterElement, BridgeContext ctx)
Converts the type of the specified color matrix filter primitive.

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

convertValuesToHueRotate

protected static float convertValuesToHueRotate(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'hueRotate' type.

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

convertValuesToMatrix

protected static float[][] convertValuesToMatrix(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'matrix' type.

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

convertValuesToSaturate

protected static float convertValuesToSaturate(Element filterElement, BridgeContext ctx)
Converts the 'values' attribute of the specified feColorMatrix filter primitive element for the 'saturate' type.

Parameters: filterElement the filter element 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 'feColorMatrix'.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.