public class RemoteDestination
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static double |
NULL_VALUE
Constant used for "null" values in destination rectangles or zoom.
|
| Constructor and Description |
|---|
RemoteDestination(Document doc,
int pageNum,
java.lang.String fitType,
Rect r,
double zoom)
Construct a RemoteDestination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object rhs) |
Rect |
getDestRect()
The destination rectangle.
|
java.lang.String |
getFitType()
The fit type.
|
int |
getPageNumber()
The page number of the destination.
|
PDFObject |
getPDFObject()
Retrieve the PDFObject representation of this Remote Destination.
|
double |
getZoom()
The zoom factor for the destination.
|
void |
setDestRect(Rect destRect)
Set the rectangle for the destination.
|
void |
setFitType(java.lang.String remoteDestFitType)
Set the fit type for the destination.
|
void |
setPageNumber(int remoteDestPageNum)
Set the page number of the destination (page numbers start at 0)
|
void |
setZoom(double zoomFactor)
Set the zoom factor for the destination.
|
java.lang.String |
toString() |
public static final double NULL_VALUE
public RemoteDestination(Document doc, int pageNum, java.lang.String fitType, Rect r, double zoom)
doc - Document that the RemoteDestination will be created in.pageNum - Page number of the page in the remote document to display.fitType - Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".r - Target Rectanglezoom - Zoom levelpublic void delete()
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getPageNumber()
public void setPageNumber(int remoteDestPageNum)
public java.lang.String getFitType()
public void setFitType(java.lang.String remoteDestFitType)
public Rect getDestRect()
public void setDestRect(Rect destRect)
public double getZoom()
public void setZoom(double zoomFactor)
public PDFObject getPDFObject()