Record Class StyleResolver.ResolvedParagraph

java.lang.Object
java.lang.Record
io.leandev.appfuse.report.internal.StyleResolver.ResolvedParagraph
Enclosing class:
StyleResolver

public static record StyleResolver.ResolvedParagraph(StyleResolver.ResolvedText text, Align align, double lineHeight, Length spaceBefore, Length spaceAfter, Length firstLineIndent, boolean keepWithNext, int orphans, int widows, TextFlow textFlow, boolean repeatSpaceBefore, boolean repeatSpaceAfter) extends Record
完整段落樣式
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResolvedParagraph(StyleResolver.ResolvedText text, Align align, double lineHeight, Length spaceBefore, Length spaceAfter, Length firstLineIndent, boolean keepWithNext, int orphans, int widows, TextFlow textFlow, boolean repeatSpaceBefore, boolean repeatSpaceAfter)
    Creates an instance of a ResolvedParagraph record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the align record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the firstLineIndent record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the keepWithNext record component.
    double
    Returns the value of the lineHeight record component.
    int
    Returns the value of the orphans record component.
    boolean
    Returns the value of the repeatSpaceAfter record component.
    boolean
    Returns the value of the repeatSpaceBefore record component.
    Returns the value of the spaceAfter record component.
    Returns the value of the spaceBefore record component.
    Returns the value of the text record component.
    Returns the value of the textFlow record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the widows record component.

    Methods inherited from class Object

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

    • ResolvedParagraph

      public ResolvedParagraph(StyleResolver.ResolvedText text, Align align, double lineHeight, Length spaceBefore, Length spaceAfter, Length firstLineIndent, boolean keepWithNext, int orphans, int widows, TextFlow textFlow, boolean repeatSpaceBefore, boolean repeatSpaceAfter)
      Creates an instance of a ResolvedParagraph record class.
      Parameters:
      text - the value for the text record component
      align - the value for the align record component
      lineHeight - the value for the lineHeight record component
      spaceBefore - the value for the spaceBefore record component
      spaceAfter - the value for the spaceAfter record component
      firstLineIndent - the value for the firstLineIndent record component
      keepWithNext - the value for the keepWithNext record component
      orphans - the value for the orphans record component
      widows - the value for the widows record component
      textFlow - the value for the textFlow record component
      repeatSpaceBefore - the value for the repeatSpaceBefore record component
      repeatSpaceAfter - the value for the repeatSpaceAfter 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 the compare method from their corresponding wrapper classes.
      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.
    • text

      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • align

      public Align align()
      Returns the value of the align record component.
      Returns:
      the value of the align record component
    • lineHeight

      public double lineHeight()
      Returns the value of the lineHeight record component.
      Returns:
      the value of the lineHeight record component
    • spaceBefore

      public Length spaceBefore()
      Returns the value of the spaceBefore record component.
      Returns:
      the value of the spaceBefore record component
    • spaceAfter

      public Length spaceAfter()
      Returns the value of the spaceAfter record component.
      Returns:
      the value of the spaceAfter record component
    • firstLineIndent

      public Length firstLineIndent()
      Returns the value of the firstLineIndent record component.
      Returns:
      the value of the firstLineIndent record component
    • keepWithNext

      public boolean keepWithNext()
      Returns the value of the keepWithNext record component.
      Returns:
      the value of the keepWithNext record component
    • orphans

      public int orphans()
      Returns the value of the orphans record component.
      Returns:
      the value of the orphans record component
    • widows

      public int widows()
      Returns the value of the widows record component.
      Returns:
      the value of the widows record component
    • textFlow

      public TextFlow textFlow()
      Returns the value of the textFlow record component.
      Returns:
      the value of the textFlow record component
    • repeatSpaceBefore

      public boolean repeatSpaceBefore()
      Returns the value of the repeatSpaceBefore record component.
      Returns:
      the value of the repeatSpaceBefore record component
    • repeatSpaceAfter

      public boolean repeatSpaceAfter()
      Returns the value of the repeatSpaceAfter record component.
      Returns:
      the value of the repeatSpaceAfter record component