Record Class SvgLine
java.lang.Object
java.lang.Record
pro.verron.asciidoc.converters.svg.SvgLine
- Record Components:
x1- start x coordinatey1- start y coordinatex2- end x coordinatey2- end y coordinatestroke- stroke coloropts- additional SVG attributes
- All Implemented Interfaces:
SvgElement
public record SvgLine(String x1, String y1, String x2, String y2, String stroke, SvgAttributes opts)
extends Record
implements SvgElement
SVG
<line> element model.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anSvgLineelement with variable attributes.Creates an instance of aSvgLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the SVG attributes for this element.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.markup()Returns the SVG tag name for this element.opts()Returns the value of theoptsrecord component.stroke()Returns the value of thestrokerecord component.final StringtoString()Returns a string representation of this record class.x1()Returns the value of thex1record component.x2()Returns the value of thex2record component.y1()Returns the value of they1record component.y2()Returns the value of they2record component.Methods inherited from interface SvgElement
children, serialize
-
Constructor Details
-
SvgLine
Constructs anSvgLineelement with variable attributes.- Parameters:
x1- start x coordinatey1- start y coordinatex2- end x coordinatey2- end y coordinatestroke- stroke coloropts- additional SVG attributes
-
SvgLine
Creates an instance of aSvgLinerecord class.
-
-
Method Details
-
markup
Description copied from interface:SvgElementReturns the SVG tag name for this element.- Specified by:
markupin interfaceSvgElement- Returns:
- the SVG tag name
-
attributes
Description copied from interface:SvgElementReturns the SVG attributes for this element.- Specified by:
attributesin interfaceSvgElement- Returns:
- the SVG attributes
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
x1
-
y1
-
x2
-
y2
-
stroke
-
opts
-