Record Class SvgDocument.Text
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.svg.SvgDocument.Text
- All Implemented Interfaces:
SvgDocument.Item
- Enclosing class:
SvgDocument
public static record SvgDocument.Text(Transform transform, SvgStyle style, List<SvgDocument.Run> runs, String location)
extends Record
implements SvgDocument.Item
一個
text 元素;runs 為其文字與 tspan 依序展開-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.runs()Returns the value of therunsrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
Constructor Details
-
Text
Creates an instance of aTextrecord class.- Parameters:
transform- the value for thetransformrecord componentstyle- the value for thestylerecord componentruns- the value for therunsrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
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). -
transform
Returns the value of thetransformrecord component.- Specified by:
transformin interfaceSvgDocument.Item- Returns:
- the value of the
transformrecord component
-
style
Returns the value of thestylerecord component.- Specified by:
stylein interfaceSvgDocument.Item- Returns:
- the value of the
stylerecord component
-
runs
Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-
location
Returns the value of thelocationrecord component.- Specified by:
locationin interfaceSvgDocument.Item- Returns:
- the value of the
locationrecord component
-