Package lu.kbra.modelizer_next.ui.export
Record Class PdfMargins
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.PdfMargins
- Record Components:
top- top margin in pointsright- right margin in pointsbottom- bottom margin in pointsleft- left margin in points
PDF page margins in points.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfMargins(double top, double right, double bottom, double left) Creates an instance of aPdfMarginsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebottom()Returns the value of thebottomrecord component.static PdfMarginsdefaults()Returns default PDF margins.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleleft()Returns the value of theleftrecord component.doubleright()Returns the value of therightrecord component.doubletop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PdfMargins
public PdfMargins(double top, double right, double bottom, double left) Creates an instance of aPdfMarginsrecord class.
-
-
Method Details
-
defaults
Returns default PDF margins.- Returns:
- the default margins
-
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 '=='. -
top
public double top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
right
public double right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
bottom
public double bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-
left
public double left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-