Record Class GlyphPositions.PhraseText
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.PhraseText
- Enclosing class:
GlyphPositions
public static record GlyphPositions.PhraseText(int maxLines, int lineX, int lineWidth, int fontHeight, int firstLineAscent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPhraseText(int maxLines, int lineX, int lineWidth, int fontHeight, int firstLineAscent) Creates an instance of aPhraseTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstLineAscentrecord component.intReturns the value of thefontHeightrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineWidthrecord component.intlineX()Returns the value of thelineXrecord component.intmaxLines()Returns the value of themaxLinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PhraseText
public PhraseText(int maxLines, int lineX, int lineWidth, int fontHeight, int firstLineAscent) Creates an instance of aPhraseTextrecord class.- Parameters:
maxLines- the value for themaxLinesrecord componentlineX- the value for thelineXrecord componentlineWidth- the value for thelineWidthrecord componentfontHeight- the value for thefontHeightrecord componentfirstLineAscent- the value for thefirstLineAscentrecord component
-
-
Method Details
-
firstLineProperties
-
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. All components in this record class are compared with '=='. -
maxLines
public int maxLines()Returns the value of themaxLinesrecord component.- Returns:
- the value of the
maxLinesrecord component
-
lineX
public int lineX()Returns the value of thelineXrecord component.- Returns:
- the value of the
lineXrecord component
-
lineWidth
public int lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-
fontHeight
public int fontHeight()Returns the value of thefontHeightrecord component.- Returns:
- the value of the
fontHeightrecord component
-
firstLineAscent
public int firstLineAscent()Returns the value of thefirstLineAscentrecord component.- Returns:
- the value of the
firstLineAscentrecord component
-