Record Class SectionPageRegion
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.SectionPageRegion
- Record Components:
left- 左側內容center- 中間內容right- 右側內容style- 文字與行高;段距、縮排與段落對齊不適用reserveHeight- 區域最小高度(含上下內距,不含 gap)gap- 區域與正文的距離paddingTop- 上內距paddingBottom- 下內距rule- 分隔線,null 或零線寬不畫pageNumberDigits- 頁碼預留位數(1~10);不足時停止,不縮字blocks- 全寬區塊模式;與左中右行內內容互斥,區塊各自配置樣式
public record SectionPageRegion(List<Inline> left, List<Inline> center, List<Inline> right, ParagraphStyle style, Length reserveHeight, Length gap, Length paddingTop, Length paddingBottom, LineStyle rule, int pageNumberDigits, List<Block> blocks)
extends Record
分節每頁頁首尾;全寬區塊或左中右行內內容自動換行,保留實際高度與指定最小高度的較大值。
未設定的分節頁首/頁尾各自沿用文件區域;設定者取代該文件區域。
- Since:
- 4.0.0-alpha.28
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSectionPageRegion(List<Inline> left, List<Inline> center, List<Inline> right, ParagraphStyle style, Length reserveHeight, Length gap, Length paddingTop, Length paddingBottom, LineStyle rule, int pageNumberDigits) 保留 alpha.28 十參數建構器。SectionPageRegion(List<Inline> left, List<Inline> center, List<Inline> right, ParagraphStyle style, Length reserveHeight, Length gap, Length paddingTop, Length paddingBottom, LineStyle rule, int pageNumberDigits, List<Block> blocks) Creates an instance of aSectionPageRegionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.center()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.gap()Returns the value of thegaprecord component.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.Returns the value of thepaddingBottomrecord component.Returns the value of thepaddingToprecord component.intReturns the value of thepageNumberDigitsrecord component.Returns the value of thereserveHeightrecord component.right()Returns the value of therightrecord 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
-
SectionPageRegion
-
SectionPageRegion
public SectionPageRegion(List<Inline> left, List<Inline> center, List<Inline> right, ParagraphStyle style, Length reserveHeight, Length gap, Length paddingTop, Length paddingBottom, LineStyle rule, int pageNumberDigits, List<Block> blocks) Creates an instance of aSectionPageRegionrecord class.- Parameters:
left- the value for theleftrecord componentcenter- the value for thecenterrecord componentright- the value for therightrecord componentstyle- the value for thestylerecord componentreserveHeight- the value for thereserveHeightrecord componentgap- the value for thegaprecord componentpaddingTop- the value for thepaddingToprecord componentpaddingBottom- the value for thepaddingBottomrecord componentrule- the value for therulerecord componentpageNumberDigits- the value for thepageNumberDigitsrecord componentblocks- the value for theblocksrecord 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. -
left
-
center
-
right
-
style
-
reserveHeight
Returns the value of thereserveHeightrecord component.- Returns:
- the value of the
reserveHeightrecord component
-
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
-
rule
-
pageNumberDigits
public int pageNumberDigits()Returns the value of thepageNumberDigitsrecord component.- Returns:
- the value of the
pageNumberDigitsrecord component
-
blocks
-