Package lu.kbra.modelizer_next.ui.export
Record Class ViewExportRequest
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.ViewExportRequest
- Record Components:
format- export format to usescope- export scope to usepanelTypes- values for panel typesoutputDirectory- output directory value used by the operationfileNamePattern- text value for file name patternmultiple- whether multiple input files are allowedwildcard- whether wildcard path matching is enabledbackgroundColor- background color used when transparent export pixels must be flattenedoptions- format-specific export options
public record ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard, Color backgroundColor, ViewExportOptions options)
extends Record
Immutable request object passed to the exporter.
-
Constructor Summary
ConstructorsConstructorDescriptionViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard) Creates a request with default background and format-specific options.ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard, Color backgroundColor, ViewExportOptions options) Normalizes null values to safe defaults. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileNamePatternrecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the effective image options.booleanmultiple()Returns the value of themultiplerecord component.options()Returns the value of theoptionsrecord component.Returns the value of theoutputDirectoryrecord component.Returns the value of thepanelTypesrecord component.Returns the effective PDF options.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.booleanwildcard()Returns the value of thewildcardrecord component.
-
Constructor Details
-
ViewExportRequest
public ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard) Creates a request with default background and format-specific options.- Parameters:
format- export format to usescope- export scope to usepanelTypes- values for panel typesoutputDirectory- output directory value used by the operationfileNamePattern- text value for file name patternmultiple- whether multiple input files are allowedwildcard- whether wildcard path matching is enabled
-
ViewExportRequest
public ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard, Color backgroundColor, ViewExportOptions options) Normalizes null values to safe defaults.
-
-
Method Details
-
imageOptions
Returns the effective image options.- Returns:
- image options or image defaults when another option type is stored
-
pdfOptions
Returns the effective PDF options.- Returns:
- PDF options or PDF defaults when another option type is stored
-
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 '=='. -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
panelTypes
Returns the value of thepanelTypesrecord component.- Returns:
- the value of the
panelTypesrecord component
-
outputDirectory
Returns the value of theoutputDirectoryrecord component.- Returns:
- the value of the
outputDirectoryrecord component
-
fileNamePattern
Returns the value of thefileNamePatternrecord component.- Returns:
- the value of the
fileNamePatternrecord component
-
multiple
public boolean multiple()Returns the value of themultiplerecord component.- Returns:
- the value of the
multiplerecord component
-
wildcard
public boolean wildcard()Returns the value of thewildcardrecord component.- Returns:
- the value of the
wildcardrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-