Package lu.kbra.modelizer_next.ui.export
Record Class PdfViewExportOptions
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.PdfViewExportOptions
- Record Components:
pageFormat- selected page formatorientation- selected page orientationcustomPageWidth- custom page width in points, used when pageFormat is CUSTOMcustomPageHeight- custom page height in points, used when pageFormat is CUSTOMmargins- page margins in pointsunderTemplateFile- optional image template drawn below the diagram contentoverTemplateFile- optional image template drawn above the diagram contentheaderText- header text pattern- footer text pattern
- All Implemented Interfaces:
ViewExportOptions
public record PdfViewExportOptions(PdfPageFormat pageFormat, PdfPageOrientation orientation, double customPageWidth, double customPageHeight, PdfMargins margins, File underTemplateFile, File overTemplateFile, String headerText, String footerText)
extends Record
implements ViewExportOptions
Options used by the PDF exporter.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfViewExportOptions(PdfPageFormat pageFormat, PdfPageOrientation orientation, double customPageWidth, double customPageHeight, PdfMargins margins, File underTemplateFile, File overTemplateFile, String headerText, String footerText) Creates an instance of aPdfViewExportOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecustomPageHeightrecord component.doubleReturns the value of thecustomPageWidthrecord component.static PdfViewExportOptionsdefaults()Returns default PDF export options.doubleReturns the effective page height after applying custom size and orientation.doubleReturns the effective page width after applying custom size and orientation.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefooterTextrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderTextrecord component.margins()Returns the value of themarginsrecord component.Returns the value of theorientationrecord component.Returns the value of theoverTemplateFilerecord component.Returns the value of thepageFormatrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunderTemplateFilerecord component.
-
Constructor Details
-
PdfViewExportOptions
public PdfViewExportOptions(PdfPageFormat pageFormat, PdfPageOrientation orientation, double customPageWidth, double customPageHeight, PdfMargins margins, File underTemplateFile, File overTemplateFile, String headerText, String footerText) Creates an instance of aPdfViewExportOptionsrecord class.- Parameters:
pageFormat- the value for thepageFormatrecord componentorientation- the value for theorientationrecord componentcustomPageWidth- the value for thecustomPageWidthrecord componentcustomPageHeight- the value for thecustomPageHeightrecord componentmargins- the value for themarginsrecord componentunderTemplateFile- the value for theunderTemplateFilerecord componentoverTemplateFile- the value for theoverTemplateFilerecord componentheaderText- the value for theheaderTextrecord componentfooterText- the value for thefooterTextrecord component
-
-
Method Details
-
defaults
Returns default PDF export options.- Returns:
- the default options
-
effectivePageHeight
public double effectivePageHeight()Returns the effective page height after applying custom size and orientation.- Returns:
- the effective page height
-
effectivePageWidth
public double effectivePageWidth()Returns the effective page width after applying custom size and orientation.- Returns:
- the effective page width
-
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. -
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. -
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 '=='. -
pageFormat
Returns the value of thepageFormatrecord component.- Returns:
- the value of the
pageFormatrecord component
-
orientation
Returns the value of theorientationrecord component.- Returns:
- the value of the
orientationrecord component
-
customPageWidth
public double customPageWidth()Returns the value of thecustomPageWidthrecord component.- Returns:
- the value of the
customPageWidthrecord component
-
customPageHeight
public double customPageHeight()Returns the value of thecustomPageHeightrecord component.- Returns:
- the value of the
customPageHeightrecord component
-
margins
Returns the value of themarginsrecord component.- Returns:
- the value of the
marginsrecord component
-
underTemplateFile
Returns the value of theunderTemplateFilerecord component.- Returns:
- the value of the
underTemplateFilerecord component
-
overTemplateFile
Returns the value of theoverTemplateFilerecord component.- Returns:
- the value of the
overTemplateFilerecord component
-
headerText
Returns the value of theheaderTextrecord component.- Returns:
- the value of the
headerTextrecord component
-