Record Class TextMeasurer.Segment
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.layout.TextMeasurer.Segment
- Record Components:
font- 字型text- 實際輸出的文字(缺字已替代)width- 寬度(pt)oblique- 是否以傾斜合成斜體
- Enclosing interface:
TextMeasurer
public static record TextMeasurer.Segment(TextMeasurer.FontHandle font, String text, double width, boolean oblique)
extends Record
同一字型的連續文字
-
Constructor Summary
ConstructorsConstructorDescriptionSegment(TextMeasurer.FontHandle font, String text, double width, boolean oblique) Creates an instance of aSegmentrecord 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.booleanoblique()Returns the value of theobliquerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord 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. -
font
-
text
-
width
-
oblique
-