Class SVGMaskElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, GenericBridge, MaskBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants

public class SVGMaskElementBridge extends AnimatableGenericSVGBridge implements MaskBridge
Bridge class for the <mask> element.
  • Constructor Details

    • SVGMaskElementBridge

      public SVGMaskElementBridge()
      Constructs a new bridge for the <mask> element.
  • Method Details

    • getLocalName

      public String getLocalName()
      Returns 'mask'.
      Specified by:
      getLocalName in interface Bridge
    • createMask

      public Mask createMask(BridgeContext ctx, Element maskElement, Element maskedElement, GraphicsNode maskedNode)
      Creates a Mask according to the specified parameters.
      Specified by:
      createMask in interface MaskBridge
      Parameters:
      ctx - the bridge context to use
      maskElement - the element that defines the mask
      maskedElement - the element that references the mask element
      maskedNode - the graphics node to mask