SUMMARY:
java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.AnimatableSVGBridge
org.apache.batik.bridge.AnimatableGenericSVGBridge
org.apache.batik.bridge.AbstractSVGFilterPrimitiveElementBridge
org.apache.batik.extension.svg.BatikHistogramNormalizationElementBridge
- All Implemented Interfaces:
- Bridge, BridgeUpdateHandler, ErrorConstants, FilterPrimitiveBridge, GenericBridge, SVGAnimationTargetContext, SVGContext, BatikExtConstants, CSSConstants, SVGConstants, XMLConstants
public class BatikHistogramNormalizationElementBridge
- extends AbstractSVGFilterPrimitiveElementBridge
- implements BatikExtConstants
Bridge class for a histogram normalization element.
BatikHistogramNormalizationElementBridge
public BatikHistogramNormalizationElementBridge()
- Constructs a new bridge for the <histogramNormalization> element.
getNamespaceURI
public String getNamespaceURI()
- Returns the SVG namespace URI.
- Specified by:
getNamespaceURI
in interface Bridge
- Overrides:
getNamespaceURI
in class AbstractSVGBridge
getLocalName
public String getLocalName()
- Returns 'histogramNormalization'.
- Specified by:
getLocalName
in interface Bridge
getInstance
public Bridge getInstance()
- Returns a new instance of this bridge.
- Specified by:
getInstance
in interface Bridge
- Overrides:
getInstance
in class AbstractSVGBridge
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.
- Specified by:
createFilter
in interface FilterPrimitiveBridge
- Parameters:
ctx
- the bridge context to usefilterElement
- the element that defines a filterfilteredElement
- the element that references the filterfilteredNode
- the graphics node to filterinputFilter
- 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.
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 elementattrName
- the name of the attributedefaultValue
- the default value of the attributectx
- the BridgeContext to use for error information