Record Class StyledTextRenderer.LineDrawInfo
java.lang.Object
java.lang.Record
org.eclipse.swt.custom.StyledTextRenderer.LineDrawInfo
- Enclosing class:
StyledTextRenderer
private static record StyledTextRenderer.LineDrawInfo(int index, TextLayout layout, String text, int offset, int height)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theheightrecord component.private final intThe field for theindexrecord component.private final TextLayoutThe field for thelayoutrecord component.private final intThe field for theoffsetrecord component.private final StringThe field for thetextrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLineDrawInfo(int index, TextLayout layout, String text, int offset, int height) Creates an instance of aLineDrawInforecord class. -
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.intheight()Returns the value of theheightrecord component.intindex()Returns the value of theindexrecord component.layout()Returns the value of thelayoutrecord component.intoffset()Returns the value of theoffsetrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindexrecord component. -
layout
The field for thelayoutrecord component. -
text
The field for thetextrecord component. -
offset
private final int offsetThe field for theoffsetrecord component. -
height
private final int heightThe field for theheightrecord component.
-
-
Constructor Details
-
LineDrawInfo
Creates an instance of aLineDrawInforecord class.- Parameters:
index- the value for theindexrecord componentlayout- the value for thelayoutrecord componenttext- the value for thetextrecord componentoffset- the value for theoffsetrecord componentheight- the value for theheightrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-