org.apache.batik.bridge

Class AbstractSVGFilterPrimitiveElementBridge

public abstract class AbstractSVGFilterPrimitiveElementBridge extends AnimatableGenericSVGBridge implements FilterPrimitiveBridge, ErrorConstants

The base bridge class for SVG filter primitives.
Constructor Summary
protected AbstractSVGFilterPrimitiveElementBridge()
Constructs a new bridge for a filter primitive element.
Method Summary
protected static intconvertInteger(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents an integer and with the specified default value.
protected static floatconvertNumber(Element filterElement, String attrName, float defaultValue, BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents a float and with the specified default value.
protected static FiltergetIn(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns the input source of the specified filter primitive element defined by its 'in' attribute.
protected static FiltergetIn2(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns the input source of the specified filter primitive element defined by its 'in2' attribute.
protected static voidhandleColorInterpolationFilters(Filter filter, Element filterElement)
Handles the 'color-interpolation-filters' CSS property.
protected static voidupdateFilterMap(Element filterElement, Filter filter, Map filterMap)
Updates the filterMap according to the specified parameters.

Constructor Detail

AbstractSVGFilterPrimitiveElementBridge

protected AbstractSVGFilterPrimitiveElementBridge()
Constructs a new bridge for a filter primitive element.

Method Detail

convertInteger

protected static int convertInteger(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents an integer and with the specified default value.

Parameters: filterElement the filter primitive element attrName the name of the attribute defaultValue the default value of the attribute ctx the BridgeContext to use for error information

convertNumber

protected static float convertNumber(Element filterElement, String attrName, float defaultValue, BridgeContext ctx)
Converts on the specified filter primitive element, the specified attribute that represents a float and with the specified default value.

Parameters: filterElement the filter primitive element attrName the name of the attribute defaultValue the default value of the attribute ctx the BridgeContext to use for error information

getIn

protected static Filter getIn(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns the input source of the specified filter primitive element defined by its 'in' attribute.

Parameters: filterElement the filter primitive element filteredElement the element on which the filter is referenced filteredNode the graphics node on which the filter is applied inputFilter the default input filter filterMap the map that containes the named filter primitives ctx the bridge context

getIn2

protected static Filter getIn2(Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Map filterMap, BridgeContext ctx)
Returns the input source of the specified filter primitive element defined by its 'in2' attribute. The 'in2' attribute is assumed to be required if the subclasses ask for it.

Parameters: filterElement the filter primitive element filteredElement the element on which the filter is referenced filteredNode the graphics node on which the filter is applied inputFilter the default input filter filterMap the map that containes the named filter primitives ctx the bridge context

handleColorInterpolationFilters

protected static void handleColorInterpolationFilters(Filter filter, Element filterElement)
Handles the 'color-interpolation-filters' CSS property.

Parameters: filter the filter filterElement the filter element

updateFilterMap

protected static void updateFilterMap(Element filterElement, Filter filter, Map filterMap)
Updates the filterMap according to the specified parameters.

Parameters: filterElement the filter primitive element filter the filter that is part of the filter chain filterMap the filter map to update

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.