Class SVGRadialGradientElementBridge

    • Constructor Detail

      • SVGRadialGradientElementBridge

        public SVGRadialGradientElementBridge()
        Constructs a new SVGRadialGradientElementBridge.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Returns 'radialGradient'.
      • buildGradient

        protected java.awt.Paint buildGradient​(org.w3c.dom.Element paintElement,
                                               org.w3c.dom.Element paintedElement,
                                               GraphicsNode paintedNode,
                                               MultipleGradientPaint.CycleMethodEnum spreadMethod,
                                               MultipleGradientPaint.ColorSpaceEnum colorSpace,
                                               java.awt.geom.AffineTransform transform,
                                               java.awt.Color[] colors,
                                               float[] offsets,
                                               BridgeContext ctx)
        Builds a radial gradient according to the specified parameters.
        Specified by:
        buildGradient in class AbstractSVGGradientElementBridge
        Parameters:
        paintElement - the element that defines a Paint
        paintedElement - the element referencing the paint
        paintedNode - the graphics node on which the Paint will be applied
        spreadMethod - the spread method
        colorSpace - the color space (sRGB | LinearRGB)
        transform - the gradient transform
        colors - the colors of the gradient
        offsets - the offsets
        ctx - the bridge context to use