Record Class FixedTextMeasurer.Run
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedTextMeasurer.Run
- Record Components:
text- 片段文字font- 實際使用的字型來源(fallback 鏈中第一個含該字者)widthPt- 片段字寬總和(pt),不含字距
- Enclosing interface:
FixedTextMeasurer
public static record FixedTextMeasurer.Run(String text, FontSource font, double widthPt)
extends Record
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRun(String text, FontSource font, double widthPt) Creates an instance of aRunrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.doublewidthPt()Returns the value of thewidthPtrecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
text
-
font
-
widthPt
-