SVGRadialGradientElementBuilder class

SVGRadialGradientElementBuilder class

Builder class for constructing an SVG ‘radialGradient’ element, which is used to define a radial gradient within SVG graphics. This class enables the building of content within the ‘radialGradient’ element and provides methods to set various attributes specific to the ‘radialGradient’ element in SVG.

The SVGRadialGradientElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGRadialGradientElementBuilder

Methods

MethodDescription
build
build
hrefSets the ‘href’ attribute of the SVG ‘radialGradient’ element, specifying a reference to another gradient.
cxSets the ‘cx’ attribute of the SVG ‘radialGradient’ element, specifying the x-coordinate of the center of the gradient.
cySets the ‘cy’ attribute of the SVG ‘radialGradient’ element, specifying the y-coordinate of the center of the gradient.
rSets the ‘r’ attribute of the SVG ‘radialGradient’ element, specifying the radius of the gradient.
fxSets the ‘fx’ attribute of the SVG ‘radialGradient’ element, specifying the x-coordinate of the focal point of the gradient.
fySets the ‘fy’ attribute of the SVG ‘radialGradient’ element, specifying the y-coordinate of the focal point of the gradient.
build_elementBuilds and returns an SVGElement instance based on the current configuration of the builder.
attributeSets or updates an attribute on an SVG element.

See Also