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
ConstructorsConstructorDescriptionResolvedParagraph(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 aResolvedParagraphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalign()Returns the value of thealignrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstLineIndentrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepWithNextrecord component.doubleReturns the value of thelineHeightrecord component.intorphans()Returns the value of theorphansrecord component.booleanReturns the value of therepeatSpaceAfterrecord component.booleanReturns the value of therepeatSpaceBeforerecord component.Returns the value of thespaceAfterrecord component.Returns the value of thespaceBeforerecord component.text()Returns the value of thetextrecord component.textFlow()Returns the value of thetextFlowrecord component.final StringtoString()Returns a string representation of this record class.intwidows()Returns the value of thewidowsrecord component.
-
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 aResolvedParagraphrecord class.- Parameters:
text- the value for thetextrecord componentalign- the value for thealignrecord componentlineHeight- the value for thelineHeightrecord componentspaceBefore- the value for thespaceBeforerecord componentspaceAfter- the value for thespaceAfterrecord componentfirstLineIndent- the value for thefirstLineIndentrecord componentkeepWithNext- the value for thekeepWithNextrecord componentorphans- the value for theorphansrecord componentwidows- the value for thewidowsrecord componenttextFlow- the value for thetextFlowrecord componentrepeatSpaceBefore- the value for therepeatSpaceBeforerecord componentrepeatSpaceAfter- the value for therepeatSpaceAfterrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
align
Returns the value of thealignrecord component.- Returns:
- the value of the
alignrecord component
-
lineHeight
public double lineHeight()Returns the value of thelineHeightrecord component.- Returns:
- the value of the
lineHeightrecord component
-
spaceBefore
Returns the value of thespaceBeforerecord component.- Returns:
- the value of the
spaceBeforerecord component
-
spaceAfter
Returns the value of thespaceAfterrecord component.- Returns:
- the value of the
spaceAfterrecord component
-
firstLineIndent
Returns the value of thefirstLineIndentrecord component.- Returns:
- the value of the
firstLineIndentrecord component
-
keepWithNext
public boolean keepWithNext()Returns the value of thekeepWithNextrecord component.- Returns:
- the value of the
keepWithNextrecord component
-
orphans
public int orphans()Returns the value of theorphansrecord component.- Returns:
- the value of the
orphansrecord component
-
widows
public int widows()Returns the value of thewidowsrecord component.- Returns:
- the value of the
widowsrecord component
-
textFlow
Returns the value of thetextFlowrecord component.- Returns:
- the value of the
textFlowrecord component
-
repeatSpaceBefore
public boolean repeatSpaceBefore()Returns the value of therepeatSpaceBeforerecord component.- Returns:
- the value of the
repeatSpaceBeforerecord component
-
repeatSpaceAfter
public boolean repeatSpaceAfter()Returns the value of therepeatSpaceAfterrecord component.- Returns:
- the value of the
repeatSpaceAfterrecord component
-