public class ViewDestination
extends java.lang.Object
The ViewDestination contains a reference to a page, a place (rectangle) on that page, and information specifying how to adjust the view to fit the window's size and shape.
| Modifier and Type | Field and Description |
|---|---|
static double |
NULL_VALUE
Constant used for "null" values in destination rectangles or zoom.
|
| Constructor and Description |
|---|
ViewDestination(Document doc,
int pageNum,
java.lang.String fitType,
Rect r,
double zoom)
General purpose constructor: construct with all elements
|
| 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
|
PDFArray |
getPDFArray()
Retrieve the PDFObject representation of this object
|
double |
getZoom()
The zoom factor for the destination.
|
void |
setDestRect(Rect ViewDestRect)
Set the destination rectangle of the view.
|
void |
setFitType(java.lang.String ViewDestFitType)
Set the fit type for the view
|
void |
setPageNumber(int ViewDestPageNum)
Set the page number of the destination starting at 0
|
void |
setZoom(double ViewDestZoomFactor)
Set the zoom factor for the destination.
|
java.lang.String |
toString() |
public static final double NULL_VALUE
public ViewDestination(Document doc, int pageNum, java.lang.String fitType, Rect r, double zoom)
doc - Containing documentpageNum - Target page numberfitType - 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 ViewDestPageNum)
public java.lang.String getFitType()
public void setFitType(java.lang.String ViewDestFitType)
public Rect getDestRect()
public void setDestRect(Rect ViewDestRect)
public double getZoom()
public void setZoom(double ViewDestZoomFactor)
public PDFArray getPDFArray()