Record Class SyTextLinePositioned
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyTextLinePositioned
- Record Components:
y- The y positiontextLineNumber- The line numbertextLine- The line
public record SyTextLinePositioned(int y, SyTextLineNumber textLineNumber, SyTextLineMeasuredType textLine)
extends Record
A positioned text line produced from a text.
-
Constructor Summary
ConstructorsConstructorDescriptionSyTextLinePositioned(int y, SyTextLineNumber textLineNumber, SyTextLineMeasuredType textLine) A positioned text line produced from a text. -
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.text()textLine()Returns the value of thetextLinerecord component.Returns the value of thetextLineNumberrecord component.final StringtoString()Returns a string representation of this record class.inty()Returns the value of theyrecord component.
-
Constructor Details
-
SyTextLinePositioned
public SyTextLinePositioned(int y, SyTextLineNumber textLineNumber, SyTextLineMeasuredType textLine) A positioned text line produced from a text.- Parameters:
y- The y positiontextLineNumber- The line numbertextLine- The line
-
-
Method Details
-
textDirection
- Returns:
- The text direction
-
text
- Returns:
- The text
-
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. -
y
-
textLineNumber
Returns the value of thetextLineNumberrecord component.- Returns:
- the value of the
textLineNumberrecord component
-
textLine
-