Package com.nsdev.lettergenerator.render
Record Class DebugBox
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.render.DebugBox
- Record Components:
pageNumber- one-based page numberkind- declared rectangle classificationxMm- left edge in millimetersyMm- top edge in millimeterswidthMm- allocated width in millimetersheightMm- allocated height in millimeters
public record DebugBox(int pageNumber, String kind, double xMm, double yMm, double widthMm, double heightMm)
extends Record
Declared layout rectangle, measured from the physical page's upper-left corner. These rectangles
describe allocated areas, not the bounds of individual glyphs or image pixels.
-
Constructor Summary
Constructors -
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.doubleheightMm()Returns the value of theheightMmrecord component.kind()Returns the value of thekindrecord component.intReturns the value of thepageNumberrecord component.final StringtoString()Returns a string representation of this record class.doublewidthMm()Returns the value of thewidthMmrecord component.doublexMm()Returns the value of thexMmrecord component.doubleyMm()Returns the value of theyMmrecord component.
-
Constructor Details
-
DebugBox
public DebugBox(int pageNumber, String kind, double xMm, double yMm, double widthMm, double heightMm) Creates an instance of aDebugBoxrecord class.- Parameters:
pageNumber- the value for thepageNumberrecord componentkind- the value for thekindrecord componentxMm- the value for thexMmrecord componentyMm- the value for theyMmrecord componentwidthMm- the value for thewidthMmrecord componentheightMm- the value for theheightMmrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
xMm
public double xMm()Returns the value of thexMmrecord component.- Returns:
- the value of the
xMmrecord component
-
yMm
public double yMm()Returns the value of theyMmrecord component.- Returns:
- the value of the
yMmrecord component
-
widthMm
public double widthMm()Returns the value of thewidthMmrecord component.- Returns:
- the value of the
widthMmrecord component
-
heightMm
public double heightMm()Returns the value of theheightMmrecord component.- Returns:
- the value of the
heightMmrecord component
-