org.apache.batik.extension.svg

Class BatikHistogramNormalizationElementBridge

public class BatikHistogramNormalizationElementBridge extends AbstractSVGFilterPrimitiveElementBridge implements BatikExtConstants

Bridge class for a histogram normalization element.
Constructor Summary
BatikHistogramNormalizationElementBridge()
Constructs a new bridge for the <histogramNormalization> element.
Method Summary
protected static intconvertSides(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Stolen from AbstractSVGFilterPrimitiveElementBridge.
FiltercreateFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap)
Creates a Filter primitive according to the specified parameters.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'histogramNormalization'.
StringgetNamespaceURI()
Returns the SVG namespace URI.

Constructor Detail

BatikHistogramNormalizationElementBridge

public BatikHistogramNormalizationElementBridge()
Constructs a new bridge for the <histogramNormalization> element.

Method Detail

convertSides

protected static int convertSides(Element filterElement, String attrName, int defaultValue, BridgeContext ctx)
Stolen from AbstractSVGFilterPrimitiveElementBridge. 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

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.

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

getLocalName

public String getLocalName()
Returns 'histogramNormalization'.

getNamespaceURI

public String getNamespaceURI()
Returns the SVG namespace URI.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.