Record Class FoliosBook.CoverText.Line
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.FoliosBook.CoverText.Line
- Enclosing class:
FoliosBook.CoverText
public static record FoliosBook.CoverText.Line(float x, float y, float size, float width)
extends Record
A line of lettering: its middle (x, y), how large, and how much room it has across.
-
Constructor Summary
ConstructorsConstructorDescriptionLine(float x, float y, float size, float width) Creates an instance of aLinerecord 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.floatsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
Line
public Line(float x, float y, float size, float width) Creates an instance of aLinerecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentsize- the value for thesizerecord componentwidth- the value for thewidthrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
size
public float size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-