SUMMARY:
java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.extension.svg.ColorSwitchBridge
- All Implemented Interfaces:
- Bridge, PaintBridge, BatikExtConstants, CSSConstants, SVGConstants, XMLConstants
public class ColorSwitchBridge
- extends AbstractSVGBridge
- implements PaintBridge, BatikExtConstants
Bridge class for the "color switch" extension element.
ColorSwitchBridge
public ColorSwitchBridge()
- Constructs a new bridge for the <batik:colorSwitch> 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 'colorSwitch'.
- Specified by:
getLocalName
in interface Bridge
createPaint
public Paint createPaint(BridgeContext ctx,
Element paintElement,
Element paintedElement,
GraphicsNode paintedNode,
float opacity)
- Creates a Paint according to the specified parameters.
- Specified by:
createPaint
in interface PaintBridge
- Parameters:
ctx
- the bridge context to usepaintElement
- the element that defines a PaintpaintedElement
- the element referencing the paintpaintedNode
- the graphics node on which the Paint will be appliedopacity
- the opacity of the Paint to create