Package io.keikai.axyra.sheets
Record Class PageMargins
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PageMargins
- Record Components:
left- the left margin in inchesright- the right margin in inchestop- the top margin in inchesbottom- the bottom margin in inchesheader- the distance from the page top to the header, in inches- the distance from the page bottom to the footer, in inches
public record PageMargins(double left, double right, double top, double bottom, double header, double footer)
extends Record
The six page margins of a sheet, in inches (Excel semantics; ECMA-376 Part 1
§18.3.1.62
pageMargins). Excel's "Normal" preset is
left/right = 0.7, top/bottom = 0.75,
header/footer = 0.3.-
Constructor Summary
ConstructorsConstructorDescriptionPageMargins(double left, double right, double top, double bottom, double header, double footer) Creates an instance of aPageMarginsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.doublefooter()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.doubleheader()Returns the value of theheaderrecord component.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
-
PageMargins
public PageMargins(double left, double right, double top, double bottom, double header, double footer) Creates an instance of aPageMarginsrecord class.- Parameters:
left- the value for theleftrecord componentright- the value for therightrecord componenttop- the value for thetoprecord componentbottom- the value for thebottomrecord componentheader- the value for theheaderrecord componentfooter- the value for thefooterrecord component
-
-
Method Details
-
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 '=='. -
left
public double left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public double right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
top
public double top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
bottom
public double bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-
header
public double header()Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-