|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.PDFDestination
public class PDFDestination
Represents a destination in a PDF file. Destinations take 3 forms:
Field Summary | |
---|---|
static int |
FIT
|
static int |
FITB
|
static int |
FITBH
|
static int |
FITBV
|
static int |
FITH
|
static int |
FITR
|
static int |
FITV
|
static int |
XYZ
The known types of destination |
Constructor Summary | |
---|---|
protected |
PDFDestination(PDFObject pageObj,
int type)
Creates a new instance of PDFDestination |
Method Summary | |
---|---|
float |
getBottom()
Get the bottom coordinate value |
static PDFDestination |
getDestination(PDFObject obj,
PDFObject root)
Get a destination from either an array (explicit destination), a name (named destination) or a string (name tree destination). |
float |
getLeft()
Get the left coordinate value |
PDFObject |
getPage()
Get the PDF Page object associated with this destination |
float |
getRight()
Get the right coordinate value |
float |
getTop()
Get the top coordinate value |
int |
getType()
Get the type of this destination |
float |
getZoom()
Get the zoom value |
void |
setBottom(float bottom)
Set the bottom coordinate value |
void |
setLeft(float left)
Set the left coordinate value |
void |
setRight(float right)
Set the right coordinate value |
void |
setTop(float top)
Set the top coordinate value |
void |
setZoom(float zoom)
Set the zoom value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int XYZ
public static final int FIT
public static final int FITH
public static final int FITV
public static final int FITR
public static final int FITB
public static final int FITBH
public static final int FITBV
Constructor Detail |
---|
protected PDFDestination(PDFObject pageObj, int type)
pageObj
- the page object this destination refers totype
- the type of page this object refers toMethod Detail |
---|
public static PDFDestination getDestination(PDFObject obj, PDFObject root) throws java.io.IOException
obj
- the PDFObject representing this destinationroot
- the root of the PDF object tree
java.io.IOException
public int getType()
public PDFObject getPage()
public float getLeft()
public void setLeft(float left)
public float getRight()
public void setRight(float right)
public float getTop()
public void setTop(float top)
public float getBottom()
public void setBottom(float bottom)
public float getZoom()
public void setZoom(float zoom)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |