|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdfViewer.actions.Action
com.qoppa.pdfViewer.actions.GotoPageAction
Action that tells the viewer to go to a page in the current document.
| Field Summary | |
static String |
ACTION_TYPE_DESCRIPTION
|
static int |
ZOOM_EXPLICIT
Set the zoom scale explicitly. |
static int |
ZOOM_FIT
Zoom the view to fit the target page both horizontally and vertically. |
static int |
ZOOM_FIT_HORIZONTAL
Zoom the target page so that it will fit horizontally. |
static int |
ZOOM_FIT_VERTICAL
Zoom the target page so that it will fit vertically. |
static int |
ZOOM_RETAIN
Do not adjust the zoom scale, retain the current value. |
| Constructor Summary | |
GotoPageAction(int pageNumber)
Constructs a GotoPageAction with a page number. |
|
GotoPageAction(int pageNumber,
int zoomMode)
Construct a GotoPageAction that sets the targets zoom mode. |
|
GotoPageAction(int pageNumber,
int left,
int top,
double scale)
Constructs a GotoPageAction with a page number and with values to set the target views left and top coordinate as well as the zoom scale. |
|
| Method Summary | |
String |
getActionType()
Returns the action type. |
String |
getActionTypeDesc()
Returns the action type description |
int |
getPageNumber()
Returns the target page number. |
int |
getTargetLeft()
Gets the destination's left coordinate. |
double |
getTargetScale()
Returns the target scale, the value of the scale that the viewer will use after setting the page. |
int |
getTargetTop()
Gets the destination's top coordinate. |
int |
getZoomMode()
Returns the zoom mode. |
void |
setPageNumber(int pageNumber)
Sets the target page number. |
void |
setTargetLeft(int targetLeft)
Sets the destination's left coordinate. |
void |
setTargetScale(double targetScale)
Sets the target scale, 0..1. |
void |
setTargetTop(int targetTop)
Sets the destination's top coordinate. |
void |
setZoomMode(int zoomMode)
Sets the zoom mode. |
String |
toString()
Returns the description of the action. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static String ACTION_TYPE_DESCRIPTION
public static final int ZOOM_RETAIN
public static final int ZOOM_FIT
public static final int ZOOM_FIT_HORIZONTAL
public static final int ZOOM_FIT_VERTICAL
public static final int ZOOM_EXPLICIT
| Constructor Detail |
public GotoPageAction(int pageNumber)
pageNumber - The target page number, 1 based.
public GotoPageAction(int pageNumber,
int left,
int top,
double scale)
pageNumber - The target page number, 1 based.left - The target left coordinate. Set to -1 to retain the current valuetop - The target top coordinate. Set to -1 to retain the current valuescale - The zoom scale as a decimal. .5 will be 50% zoom, 5 will be 500%. If set to -1 or 0 to retain the current value
public GotoPageAction(int pageNumber,
int zoomMode)
pageNumber - The target page number, 1 based.zoomMode - The new mode. If the mode is fit horizontal, or fit vertical, the
viewer will also look at the TagetTop and TargetLeft values respectively.| Method Detail |
public int getPageNumber()
public void setPageNumber(int pageNumber)
pageNumber - The target page number.public String getActionType()
getActionType in class Actionpublic String getActionTypeDesc()
getActionTypeDesc in class Actionpublic String toString()
public int getTargetLeft()
public void setTargetLeft(int targetLeft)
targetLeft - The new target left position.public int getTargetTop()
public void setTargetTop(int targetTop)
targetTop - The new target top position.public double getTargetScale()
public void setTargetScale(double targetScale)
targetScale - public int getZoomMode()
public void setZoomMode(int zoomMode)
zoomMode - The new value of the zoom mode.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||