Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: 
java.lang.Object
  extended by org.apache.batik.bridge.AbstractSVGBridge
      extended by 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.


Constructor Detail

ColorSwitchBridge

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

Method Detail

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 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

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: