Class AbstractSVGGradientElementBridge.SVGStopElementBridge

All Implemented Interfaces:
SVGAnimationTargetContext, Bridge, BridgeUpdateHandler, GenericBridge, XMLConstants, SVGContext, CSSConstants, SVGConstants
Enclosing class:
AbstractSVGGradientElementBridge

public static class AbstractSVGGradientElementBridge.SVGStopElementBridge extends AnimatableGenericSVGBridge implements Bridge
Bridge class for the gradient <stop> element.
  • Constructor Details

    • SVGStopElementBridge

      public SVGStopElementBridge()
  • Method Details

    • getLocalName

      public String getLocalName()
      Returns 'stop'.
      Specified by:
      getLocalName in interface Bridge
    • createStop

      public AbstractSVGGradientElementBridge.Stop createStop(BridgeContext ctx, Element gradientElement, Element stopElement, float opacity)
      Creates a Stop according to the specified parameters.
      Parameters:
      ctx - the bridge context to use
      gradientElement - the gradient element
      stopElement - the stop element
      opacity - an additional opacity of the stop color