Record Class SvgText
java.lang.Object
java.lang.Record
pro.verron.asciidoc.converters.svg.SvgText
- Record Components:
x- x coordinatey- y coordinatefontSize- font sizefill- fill colorcontent- text contentopts- additional SVG attributes
- All Implemented Interfaces:
SvgElement
public record SvgText(String x, String y, String fontSize, String fill, String content, SvgAttributes opts)
extends Record
implements SvgElement
SVG
<text> element model.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anSvgTextelement with variable attributes.Creates an instance of aSvgTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the SVG attributes for this element.children()Returns the child elements of this element.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.fill()Returns the value of thefillrecord component.fontSize()Returns the value of thefontSizerecord component.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.final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.Methods inherited from interface SvgElement
serialize
-
Constructor Details
-
SvgText
-
SvgText
-
-
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
-
children
Description copied from interface:SvgElementReturns the child elements of this element.- Specified by:
childrenin interfaceSvgElement- Returns:
- the child elements, or an empty list if none
-
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). -
x
-
y
-
fontSize
-
fill
-
content
-
opts
-