SVGLineElementBuilder class

SVGLineElementBuilder class

Builder class for constructing an SVG ’line’ element, which is used to draw straight lines within SVG graphics. This class enables the building of content within the ’line’ element and provides methods to set various attributes specific to the ’line’ element in SVG.

The SVGLineElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGLineElementBuilder

Methods

MethodDescription
build
build
x1Sets the ‘x1’ attribute of the SVG ’line’ element, specifying the x-coordinate of the start point of the line.
y1Sets the ‘y1’ attribute of the SVG ’line’ element, specifying the y-coordinate of the start point of the line.
x2Sets the ‘x2’ attribute of the SVG ’line’ element, specifying the x-coordinate of the end point of the line.
y2Sets the ‘y2’ attribute of the SVG ’line’ element, specifying the y-coordinate of the end point of the line.
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