Package lu.kbra.modelizer_next.ui.export
Record Class ImageViewExportOptions
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.ImageViewExportOptions
- Record Components:
transparentBackground- whether formats that support alpha should keep a transparent background
- All Implemented Interfaces:
ViewExportOptions
public record ImageViewExportOptions(boolean transparentBackground)
extends Record
implements ViewExportOptions
Options used by image based exporters.
-
Constructor Summary
ConstructorsConstructorDescriptionImageViewExportOptions(boolean transparentBackground) Creates an instance of aImageViewExportOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageViewExportOptionsdefaults()Returns default image export options.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransparentBackgroundrecord component.
-
Constructor Details
-
ImageViewExportOptions
public ImageViewExportOptions(boolean transparentBackground) Creates an instance of aImageViewExportOptionsrecord class.- Parameters:
transparentBackground- the value for thetransparentBackgroundrecord component
-
-
Method Details
-
defaults
Returns default image export options.- Returns:
- the default options
-
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. All components in this record class are compared with '=='. -
transparentBackground
public boolean transparentBackground()Returns the value of thetransparentBackgroundrecord component.- Returns:
- the value of the
transparentBackgroundrecord component
-