Record Class GlyphPositions.AnswerText
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.AnswerText
- Enclosing class:
GlyphPositions
public static record GlyphPositions.AnswerText(int lineWidth, int maxLines, int fontHeight, int leftLineX, int rightLineX, int topFirstLineAscent, int bottomFirstLineAscent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerText(int lineWidth, int maxLines, int fontHeight, int leftLineX, int rightLineX, int topFirstLineAscent, int bottomFirstLineAscent) Creates an instance of aAnswerTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebottomFirstLineAscentrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefontHeightrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theleftLineXrecord component.intReturns the value of thelineWidthrecord component.intmaxLines()Returns the value of themaxLinesrecord component.intReturns the value of therightLineXrecord component.intReturns the value of thetopFirstLineAscentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnswerText
public AnswerText(int lineWidth, int maxLines, int fontHeight, int leftLineX, int rightLineX, int topFirstLineAscent, int bottomFirstLineAscent) Creates an instance of aAnswerTextrecord class.- Parameters:
lineWidth- the value for thelineWidthrecord componentmaxLines- the value for themaxLinesrecord componentfontHeight- the value for thefontHeightrecord componentleftLineX- the value for theleftLineXrecord componentrightLineX- the value for therightLineXrecord componenttopFirstLineAscent- the value for thetopFirstLineAscentrecord componentbottomFirstLineAscent- the value for thebottomFirstLineAscentrecord 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. All components in this record class are compared with '=='. -
lineWidth
public int lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-
maxLines
public int maxLines()Returns the value of themaxLinesrecord component.- Returns:
- the value of the
maxLinesrecord component
-
fontHeight
public int fontHeight()Returns the value of thefontHeightrecord component.- Returns:
- the value of the
fontHeightrecord component
-
leftLineX
public int leftLineX()Returns the value of theleftLineXrecord component.- Returns:
- the value of the
leftLineXrecord component
-
rightLineX
public int rightLineX()Returns the value of therightLineXrecord component.- Returns:
- the value of the
rightLineXrecord component
-
topFirstLineAscent
public int topFirstLineAscent()Returns the value of thetopFirstLineAscentrecord component.- Returns:
- the value of the
topFirstLineAscentrecord component
-
bottomFirstLineAscent
public int bottomFirstLineAscent()Returns the value of thebottomFirstLineAscentrecord component.- Returns:
- the value of the
bottomFirstLineAscentrecord component
-