| java.lang.Object com.sun.pdfview.PDFDestination
PDFDestination | public class PDFDestination (Code) | | Represents a destination in a PDF file. Destinations take 3 forms:
- An explicit destination, which contains a reference to a page
as well as some stuff about how to fit it into the window.
- A named destination, which uses the PDF file's Dests entry
in the document catalog to map a name to an explicit destination
- A string destintation, which uses the PDF file's Dests entry.
in the name directory to map a string to an explicit destination.
All three of these cases are handled by the getDestination() method.
|
Field Summary | |
final public static int | FIT | final public static int | FITB | final public static int | FITBH | final public static int | FITBV | final public static int | FITH | final public static int | FITR | final public static int | FITV | final public static int | XYZ |
FIT | final public static int FIT(Code) | | |
FITB | final public static int FITB(Code) | | |
FITBH | final public static int FITBH(Code) | | |
FITBV | final public static int FITBV(Code) | | |
FITH | final public static int FITH(Code) | | |
FITR | final public static int FITR(Code) | | |
FITV | final public static int FITV(Code) | | |
XYZ | final public static int XYZ(Code) | | The known types of destination
|
PDFDestination | protected PDFDestination(PDFObject pageObj, int type)(Code) | | Creates a new instance of PDFDestination
Parameters: pageObj - the page object this destination refers to Parameters: type - the type of page this object refers to |
getBottom | public float getBottom()(Code) | | Get the bottom coordinate value
|
getDestination | public static PDFDestination getDestination(PDFObject obj, PDFObject root) throws IOException(Code) | | Get a destination from either an array (explicit destination), a
name (named destination) or a string (name tree destination).
Parameters: obj - the PDFObject representing this destination Parameters: root - the root of the PDF object tree |
getLeft | public float getLeft()(Code) | | Get the left coordinate value
|
getPage | public PDFObject getPage()(Code) | | Get the PDF Page object associated with this destination
|
getRight | public float getRight()(Code) | | Get the right coordinate value
|
getTop | public float getTop()(Code) | | Get the top coordinate value
|
getType | public int getType()(Code) | | Get the type of this destination
|
getZoom | public float getZoom()(Code) | | Get the zoom value
|
setBottom | public void setBottom(float bottom)(Code) | | Set the bottom coordinate value
|
setLeft | public void setLeft(float left)(Code) | | Set the left coordinate value
|
setRight | public void setRight(float right)(Code) | | Set the right coordinate value
|
setTop | public void setTop(float top)(Code) | | Set the top coordinate value
|
setZoom | public void setZoom(float zoom)(Code) | | Set the zoom value
|
|
|