Class ColorSwitchBridge

java.lang.Object
org.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.extension.svg.ColorSwitchBridge
All Implemented Interfaces:
Bridge, PaintBridge, XMLConstants, BatikExtConstants, CSSConstants, SVGConstants

public class ColorSwitchBridge extends AbstractSVGBridge implements PaintBridge, BatikExtConstants
Bridge class for the "color switch" extension element.
Version:
$Id: ColorSwitchBridge.java 1805408 2017-08-18 12:21:52Z ssteiner $
  • Constructor Details

    • ColorSwitchBridge

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

    • 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