Record Class PageSummary
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.PageSummary
- Record Components:
everyPage- 非最後頁內容lastPage- 最後頁內容style- 文字與行高覆寫;段距及縮排不適用gap- 內容與摘要之間的距離paddingTop- 摘要上內距paddingBottom- 摘要下內距reserveHeight- 每頁最小預留高度,實際取此值與文件/分節摘要所需高度的最大值rule- 摘要上線;null或零線寬表示不畫,不增加高度paddingLeft- 摘要左內距;左側內容自內容區左緣加此距離起排paddingRight- 摘要右內距;右側內容右緣止於內容區右緣減此距離
public record PageSummary(PageRegion everyPage, PageRegion lastPage, ParagraphStyle style, Length gap, Length paddingTop, Length paddingBottom, Length reserveHeight, LineStyle rule, Length paddingLeft, Length paddingRight)
extends Record
每頁內容末端的左右摘要;可以使用頁碼及總頁數,不改變固定
PageRegion 頁尾。
位於頂層 pageBreakBefore=true Section 的頁面另可使用
SectionPageNumber/SectionPageCount,
解析為該分節的頁碼與排版完成後的實際總頁數。
左右內容不自動換行,超寬時失敗而非截斷;同字級單行內容使用相同基線。
左右內距只縮排文字,摘要上線仍畫滿內容區寬度。
最後頁採 lastPage,其他頁採 everyPage;分節最後頁可逐側優先採 PageSummaryOverride。
無摘要文字時仍保留設定的線及空間。- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPageSummary(PageRegion everyPage, PageRegion lastPage, ParagraphStyle style, Length gap, Length paddingTop, Length paddingBottom, Length reserveHeight, LineStyle rule) 保留既有八參數建構器;左右內距為 0。PageSummary(PageRegion everyPage, PageRegion lastPage, ParagraphStyle style, Length gap, Length paddingTop, Length paddingBottom, Length reserveHeight, LineStyle rule, Length paddingLeft, Length paddingRight) Creates an instance of aPageSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeveryPagerecord component.gap()Returns the value of thegaprecord component.final inthashCode()Returns a hash code value for this object.lastPage()Returns the value of thelastPagerecord component.Returns the value of thepaddingBottomrecord component.Returns the value of thepaddingLeftrecord component.Returns the value of thepaddingRightrecord component.Returns the value of thepaddingToprecord component.Returns the value of thereserveHeightrecord component.rule()Returns the value of therulerecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PageSummary
public PageSummary(PageRegion everyPage, PageRegion lastPage, ParagraphStyle style, Length gap, Length paddingTop, Length paddingBottom, Length reserveHeight, LineStyle rule) 保留既有八參數建構器;左右內距為 0。 -
PageSummary
public PageSummary(PageRegion everyPage, PageRegion lastPage, ParagraphStyle style, Length gap, Length paddingTop, Length paddingBottom, Length reserveHeight, LineStyle rule, Length paddingLeft, Length paddingRight) Creates an instance of aPageSummaryrecord class.- Parameters:
everyPage- the value for theeveryPagerecord componentlastPage- the value for thelastPagerecord componentstyle- the value for thestylerecord componentgap- the value for thegaprecord componentpaddingTop- the value for thepaddingToprecord componentpaddingBottom- the value for thepaddingBottomrecord componentreserveHeight- the value for thereserveHeightrecord componentrule- the value for therulerecord componentpaddingLeft- the value for thepaddingLeftrecord componentpaddingRight- the value for thepaddingRightrecord 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 withObjects::equals(Object,Object). -
everyPage
-
lastPage
-
style
-
gap
-
paddingTop
Returns the value of thepaddingToprecord component.- Returns:
- the value of the
paddingToprecord component
-
paddingBottom
Returns the value of thepaddingBottomrecord component.- Returns:
- the value of the
paddingBottomrecord component
-
reserveHeight
Returns the value of thereserveHeightrecord component.- Returns:
- the value of the
reserveHeightrecord component
-
rule
-
paddingLeft
Returns the value of thepaddingLeftrecord component.- Returns:
- the value of the
paddingLeftrecord component
-
paddingRight
Returns the value of thepaddingRightrecord component.- Returns:
- the value of the
paddingRightrecord component
-