Package org.jpedal.constants
Record Class Destination.XYZ
java.lang.Object
java.lang.Record
org.jpedal.constants.Destination.XYZ
- Record Components:
left- the left X coordinatetop- the top Y coordinatezoom- the zoom factor (1.0 == 100%)
- All Implemented Interfaces:
Destination
- Enclosing interface:
Destination
public static record Destination.XYZ(float left, float top, float zoom)
extends Record
implements Destination
Display the page with the coordinates
(left, top) positioned at
the upper-left corner of the window, magnified by zoom.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jpedal.constants.Destination
Destination.Fit, Destination.FitB, Destination.FitBH, Destination.FitBV, Destination.FitH, Destination.FitR, Destination.FitV, Destination.XYZ -
Constructor Summary
ConstructorsConstructorDescriptionXYZ(float left, float top, float zoom) Creates an instance of aXYZrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.floattop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.floatzoom()Returns the value of thezoomrecord component.
-
Constructor Details
-
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 float left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
top
public float top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
zoom
public float zoom()Returns the value of thezoomrecord component.- Returns:
- the value of the
zoomrecord component
-