Module org.sejda.sambox
Class PDPageXYZDestination
java.lang.Object
org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDDestination
org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDPageDestination
org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDPageXYZDestination
- All Implemented Interfaces:
COSObjectable,PDDestinationOrAction
This represents a destination to a page at an x,y coordinate with a zoom setting. The default
x,y,z will be whatever is the current value in the viewer application and are not required.
- Author:
- Ben Litchfield
-
Field Summary
FieldsFields inherited from class org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDPageDestination
array -
Constructor Summary
ConstructorsConstructorDescriptionConstructor from an existing destination array. -
Method Summary
Modifier and TypeMethodDescriptionintgetLeft()intgetTop()floatgetZoom()voidsetLeft(int x) Set the left x-coordinate, a value of -1 implies that null will be used and the current x-coordinate will be used.voidsetTop(int y) Set the top y-coordinate, a value of -1 implies that null will be used and the current y-coordinate will be used.voidsetZoom(float zoom) Set the zoom value for the page, values 0 or -1 imply that the current zoom will be used.voidTransforms the destination target coordinates based on the given transformationMethods inherited from class org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDPageDestination
getCOSObject, getPage, getPageNumber, retrievePageNumber, setPage, setPageNumberMethods inherited from class org.sejda.sambox.pdmodel.interactive.documentnavigation.destination.PDDestination
create
-
Field Details
-
TYPE
The type of this destination.- See Also:
-
-
Constructor Details
-
PDPageXYZDestination
public PDPageXYZDestination() -
PDPageXYZDestination
Constructor from an existing destination array.- Parameters:
arr- The destination array.
-
-
Method Details
-
getLeft
public int getLeft()- Returns:
- The left x coordinate. A value of -1 implies that the current x-coordinate will be used.
-
setLeft
public void setLeft(int x) Set the left x-coordinate, a value of -1 implies that null will be used and the current x-coordinate will be used.- Parameters:
x- The left x coordinate.
-
getTop
public int getTop()- Returns:
- The top y coordinate. A value of -1 implies that the current y-coordinate will be used.
-
setTop
public void setTop(int y) Set the top y-coordinate, a value of -1 implies that null will be used and the current y-coordinate will be used.- Parameters:
y- The top ycoordinate.
-
getZoom
public float getZoom()- Returns:
- The zoom value for the page. Values of 0 or -1 imply that the current zoom will be used
-
setZoom
public void setZoom(float zoom) Set the zoom value for the page, values 0 or -1 imply that the current zoom will be used.- Parameters:
zoom- The zoom value.
-
transform
Description copied from class:PDPageDestinationTransforms the destination target coordinates based on the given transformation- Specified by:
transformin classPDPageDestination
-