Package org.jpedal.constants
Record Class Destination.FitR
java.lang.Object
java.lang.Record
org.jpedal.constants.Destination.FitR
- Record Components:
- left- the left X coordinate of the rectangle
- bottom- the bottom Y coordinate of the rectangle
- right- the right X coordinate of the rectangle
- top- the top Y coordinate of the rectangle
- All Implemented Interfaces:
- Destination
- Enclosing interface:
- Destination
public static record Destination.FitR(float left, float bottom, float right, float top)
extends Record
implements Destination
Display the page scaled just enough to fit the rectangle defined by
 
(left, bottom, right, top) entirely within the window.
 If different scaling factors are required, the smaller one is used,
 centering the rectangle in the other dimension.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.jpedal.constants.DestinationDestination.Fit, Destination.FitB, Destination.FitBH, Destination.FitBV, Destination.FitH, Destination.FitR, Destination.FitV, Destination.XYZ
- 
Constructor SummaryConstructorsConstructorDescriptionFitR(float left, float bottom, float right, float top) Creates an instance of aFitRrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfloatbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatleft()Returns the value of theleftrecord component.floatright()Returns the value of therightrecord component.floattop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
FitRpublic FitR(float left, float bottom, float right, float top) Creates an instance of aFitRrecord class.
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
leftpublic float left()Returns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
bottompublic float bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the bottomrecord component
 
- 
rightpublic float right()Returns the value of therightrecord component.- Returns:
- the value of the rightrecord component
 
- 
toppublic float top()Returns the value of thetoprecord component.- Returns:
- the value of the toprecord component
 
 
-