Package io.keikai.axyra.sheets.content
Record Class RichText.RunInfo
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.RichText.RunInfo
- Enclosing class:
- RichText
public static record RichText.RunInfo(String text, String fontName, Double fontSize, boolean bold, boolean italic, boolean underline, boolean strike, Color color)
extends Record
A read-back view of one run: its text plus the font overrides it
carries.
fontName / fontSize / color are
null when the run inherits the cell font's value; color
is typed (RGB, theme, or indexed — see Color).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbold()Returns the value of theboldrecord component.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.fontName()Returns the value of thefontNamerecord component.fontSize()Returns the value of thefontSizerecord component.final inthashCode()Returns a hash code value for this object.booleanitalic()Returns the value of theitalicrecord component.booleanstrike()Returns the value of thestrikerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunderlinerecord component.
-
Constructor Details
-
RunInfo
public RunInfo(String text, String fontName, Double fontSize, boolean bold, boolean italic, boolean underline, boolean strike, Color color) Creates an instance of aRunInforecord class.- Parameters:
text- the value for thetextrecord componentfontName- the value for thefontNamerecord componentfontSize- the value for thefontSizerecord componentbold- the value for theboldrecord componentitalic- the value for theitalicrecord componentunderline- the value for theunderlinerecord componentstrike- the value for thestrikerecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
fontName
Returns the value of thefontNamerecord component.- Returns:
- the value of the
fontNamerecord component
-
fontSize
Returns the value of thefontSizerecord component.- Returns:
- the value of the
fontSizerecord component
-
bold
public boolean bold()Returns the value of theboldrecord component.- Returns:
- the value of the
boldrecord component
-
italic
public boolean italic()Returns the value of theitalicrecord component.- Returns:
- the value of the
italicrecord component
-
underline
public boolean underline()Returns the value of theunderlinerecord component.- Returns:
- the value of the
underlinerecord component
-
strike
public boolean strike()Returns the value of thestrikerecord component.- Returns:
- the value of the
strikerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-