Record Class DebugBox

java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.render.DebugBox
Record Components:
pageNumber - one-based page number
kind - declared rectangle classification
xMm - left edge in millimeters
yMm - top edge in millimeters
widthMm - allocated width in millimeters
heightMm - 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
    Constructor
    Description
    DebugBox(int pageNumber, String kind, double xMm, double yMm, double widthMm, double heightMm)
    Creates an instance of a DebugBox record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the heightMm record component.
    Returns the value of the kind record component.
    int
    Returns the value of the pageNumber record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the widthMm record component.
    double
    xMm()
    Returns the value of the xMm record component.
    double
    yMm()
    Returns the value of the yMm record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DebugBox

      public DebugBox(int pageNumber, String kind, double xMm, double yMm, double widthMm, double heightMm)
      Creates an instance of a DebugBox record class.
      Parameters:
      pageNumber - the value for the pageNumber record component
      kind - the value for the kind record component
      xMm - the value for the xMm record component
      yMm - the value for the yMm record component
      widthMm - the value for the widthMm record component
      heightMm - the value for the heightMm record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pageNumber

      public int pageNumber()
      Returns the value of the pageNumber record component.
      Returns:
      the value of the pageNumber record component
    • kind

      public String kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • xMm

      public double xMm()
      Returns the value of the xMm record component.
      Returns:
      the value of the xMm record component
    • yMm

      public double yMm()
      Returns the value of the yMm record component.
      Returns:
      the value of the yMm record component
    • widthMm

      public double widthMm()
      Returns the value of the widthMm record component.
      Returns:
      the value of the widthMm record component
    • heightMm

      public double heightMm()
      Returns the value of the heightMm record component.
      Returns:
      the value of the heightMm record component