org.apache.batik.bridge
public class SVGFilterElementBridge extends AnimatableGenericSVGBridge implements FilterBridge, ErrorConstants
Field Summary | |
---|---|
protected static Color | TRANSPARENT_BLACK
Transparent black color. |
Constructor Summary | |
---|---|
SVGFilterElementBridge()
Constructs a new bridge for the <filter> element. |
Method Summary | |
---|---|
protected static Filter | buildFilterPrimitives(Element filterElement, Rectangle2D filterRegion, Element filteredElement, GraphicsNode filteredNode, Filter in, Map filterNodeMap, BridgeContext ctx)
Builds the filter primitives of filter chain of the specified
filter element and returns the last filter primitive
created. |
protected static Filter | buildLocalFilterPrimitives(Element filterElement, Rectangle2D filterRegion, Element filteredElement, GraphicsNode filteredNode, Filter in, Map filterNodeMap, BridgeContext ctx)
Builds the filter primitives of filter chain of the specified
filter element and returns the last filter primitive
created or 'in' if no filter primitive has been specified.
|
protected static Filter | createEmptyFilter(Element filterElement, Rectangle2D filterRegion, Element filteredElement, GraphicsNode filteredNode, BridgeContext ctx)
Creates a new returns a new filter that fills its output with
transparent black. |
Filter | createFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode)
Creates a Filter according to the specified parameters.
|
String | getLocalName()
Returns 'filter'. |
Parameters: filterElement the filter element filterRegion the filter chain region filteredElement the filtered element filteredNode the filtered node in the input Filter filterNodeMap the map used by named filter primitives ctx the bridge context
Returns: the last filter primitive created
Parameters: filterElement the filter element filterRegion the filter chain region filteredElement the filtered element filteredNode the filtered node in the input Filter filterNodeMap the map used by named filter primitives ctx the bridge context
Returns: the last filter primitive created or 'in'
Parameters: ctx the bridge context to use filterElement the element that defines the filter filteredElement the element that references the filter element filteredNode the graphics node to filter