Record Class FixedPdfRenderer.Options
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedPdfRenderer.Options
- Enclosing interface:
FixedPdfRenderer
public static record FixedPdfRenderer.Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled, IntConsumer onPage, FixedPdfRenderer.LayoutPolicy layoutPolicy)
extends Record
平移校準以 mm,作用於全部輸出元素;不更改紙張尺寸。overlayOnly 略過 STATIC 層。
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled) Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled, IntConsumer onPage) Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled, IntConsumer onPage, FixedPdfRenderer.LayoutPolicy layoutPolicy) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledrecord component.clock()Returns the value of theclockrecord component.static FixedPdfRenderer.Optionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelayoutPolicyrecord component.不縮字、不截斷、不移動元素;越頁內容可能被實體頁面裁切。doubleReturns the value of theoffsetXmmrecord component.doubleReturns the value of theoffsetYmmrecord component.onPage()Returns the value of theonPagerecord component.onPage(IntConsumer callback) 每完成一頁同步回呼;回呼失敗使本次產生失敗。booleanReturns the value of theoverlayOnlyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled, IntConsumer onPage, FixedPdfRenderer.LayoutPolicy layoutPolicy) Creates an instance of aOptionsrecord class.- Parameters:
overlayOnly- the value for theoverlayOnlyrecord componentoffsetXmm- the value for theoffsetXmmrecord componentoffsetYmm- the value for theoffsetYmmrecord componentclock- the value for theclockrecord componentcancelled- the value for thecancelledrecord componentonPage- the value for theonPagerecord componentlayoutPolicy- the value for thelayoutPolicyrecord component
-
Options
public Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled, IntConsumer onPage) -
Options
public Options(boolean overlayOnly, double offsetXmm, double offsetYmm, Clock clock, BooleanSupplier cancelled)
-
-
Method Details
-
onPage
每完成一頁同步回呼;回呼失敗使本次產生失敗。 -
layoutPolicy
不縮字、不截斷、不移動元素;越頁內容可能被實體頁面裁切。 -
defaults
-
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. -
overlayOnly
public boolean overlayOnly()Returns the value of theoverlayOnlyrecord component.- Returns:
- the value of the
overlayOnlyrecord component
-
offsetXmm
public double offsetXmm()Returns the value of theoffsetXmmrecord component.- Returns:
- the value of the
offsetXmmrecord component
-
offsetYmm
public double offsetYmm()Returns the value of theoffsetYmmrecord component.- Returns:
- the value of the
offsetYmmrecord component
-
clock
Returns the value of theclockrecord component.- Returns:
- the value of the
clockrecord component
-
cancelled
Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-
onPage
Returns the value of theonPagerecord component.- Returns:
- the value of the
onPagerecord component
-
layoutPolicy
Returns the value of thelayoutPolicyrecord component.- Returns:
- the value of the
layoutPolicyrecord component
-