org.apache.batik.extension.svg

Class ColorSwitchBridge

public class ColorSwitchBridge extends AbstractSVGBridge implements PaintBridge, BatikExtConstants

Bridge class for the "color switch" extension element.
Constructor Summary
ColorSwitchBridge()
Constructs a new bridge for the <batik:colorSwitch> element.
Method Summary
PaintcreatePaint(BridgeContext ctx, Element paintElement, Element paintedElement, GraphicsNode paintedNode, float opacity)
Creates a Paint according to the specified parameters.
StringgetLocalName()
Returns 'colorSwitch'.
StringgetNamespaceURI()
Returns the SVG namespace URI.

Constructor Detail

ColorSwitchBridge

public ColorSwitchBridge()
Constructs a new bridge for the <batik:colorSwitch> element.

Method Detail

createPaint

public Paint createPaint(BridgeContext ctx, Element paintElement, Element paintedElement, GraphicsNode paintedNode, float opacity)
Creates a Paint according to the specified parameters.

Parameters: ctx the bridge context to use paintElement the element that defines a Paint paintedElement the element referencing the paint paintedNode the graphics node on which the Paint will be applied opacity the opacity of the Paint to create

getLocalName

public String getLocalName()
Returns 'colorSwitch'.

getNamespaceURI

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