| |
|
| javax.swing.JFrame com.sun.pdfview.PDFViewer
Inner Class :class PagePreparer extends Thread | |
Inner Class :class PrintThread extends Thread | |
Inner Class :class PerformFullScreenMode implements Runnable | |
Inner Class :class PageBuilder implements Runnable | |
Constructor Summary | |
public | PDFViewer(boolean useThumbs) Create a new PDFViewer based on a user, with or without a thumbnail
panel. |
curpage | int curpage(Code) | | The current page number (starts at 0), or -1 if no page
|
doThumb | boolean doThumb(Code) | | true if the thumb panel should exist at all
|
docName | String docName(Code) | | the name of the current document
|
docWaiter | Flag docWaiter(Code) | | flag to indicate when a newly added document has been announced
|
fspp | PagePanel fspp(Code) | | The full screen page display, or null if not in full screen mode
|
olf | JDialog olf(Code) | | the window containing the pdf outline, or null if one doesn't exist
|
outline | OutlineNode outline(Code) | | the root of the outline, or null if there is no outline
|
pagePrep | PagePreparer pagePrep(Code) | | a thread that pre-loads the next page for faster response
|
thumbAction | ThumbAction thumbAction(Code) | | |
zoomInAction | ZoomAction zoomInAction(Code) | | |
zoomOutAction | ZoomAction zoomOutAction(Code) | | |
PDFViewer | public PDFViewer(boolean useThumbs)(Code) | | Create a new PDFViewer based on a user, with or without a thumbnail
panel.
Parameters: useThumbs - true if the thumb panel should exist, false if not. |
doClose | public void doClose()(Code) | | Close the current document.
|
doFirst | public void doFirst()(Code) | | Goes to the first page
|
doFitInWindow | public void doFitInWindow()(Code) | | Turns off zooming; makes the page fit in the window
|
doFullScreen | public void doFullScreen(boolean force)(Code) | | Enter full screen mode
Parameters: force - true if the user should be prompted for a screen touse in a multiple-monitor setup. If false, the user will only beprompted once. |
doLast | public void doLast()(Code) | | Goes to the last page
|
doNext | public void doNext()(Code) | | Goes to the next page
|
doOpen | public void doOpen()(Code) | | Ask the user for a PDF file to open from the local file system
|
doOpen | public void doOpen(String name)(Code) | | Open a local file, given a string filename
Parameters: name - the name of the file to open |
doPageSetup | public void doPageSetup()(Code) | | Posts the Page Setup dialog
|
doPageTyped | public void doPageTyped()(Code) | | Goes to the page that was typed in the page number text field
|
doPrev | public void doPrev()(Code) | | Goes to the previous page
|
doPrint | public void doPrint()(Code) | | Print the current document.
|
doQuit | public void doQuit()(Code) | | Shuts down all known threads. This ought to cause the JVM to quit
if the PDFViewer is the only application running.
|
doThumbs | public void doThumbs(boolean show)(Code) | | Shows or hides the thumbnails by moving the split pane divider
|
doZoom | public void doZoom(double factor)(Code) | | |
doZoomTool | public void doZoomTool()(Code) | | Turns on zooming
|
forceGotoPage | public void forceGotoPage(int pagenum)(Code) | | Changes the displayed page.
Parameters: pagenum - the page to display |
getIcon | public Icon getIcon(String name)(Code) | | utility method to get an icon from the resources of this class
Parameters: name - the name of the icon the icon, or null if the icon wasn't found. |
gotoPage | public void gotoPage(int pagenum)(Code) | | Changes the displayed page, desyncing if we're not on the
same page as a presenter.
Parameters: pagenum - the page to display |
init | protected void init()(Code) | | Initialize this PDFViewer by creating the GUI.
|
keyPressed | public void keyPressed(KeyEvent evt)(Code) | | Handle a key press for navigation
|
keyTyped | public void keyTyped(KeyEvent evt)(Code) | | gets key presses and tries to build a page if they're numeric
|
openError | public void openError(String message)(Code) | | Display a dialog indicating an error.
|
openFile | public void openFile(File file) throws IOException(Code) | | Open a specific pdf file. Creates a DocumentInfo from the file,
and opens that.
Parameters: file - the file to open |
setEnabling | public void setEnabling()(Code) | | Enable or disable all of the actions based on the current state.
|
setFullScreenMode | public void setFullScreenMode(boolean full, boolean force)(Code) | | Starts or ends full screen mode.
Parameters: full - true to enter full screen mode, false to leave Parameters: force - true if the user should be prompted for a screento use the second time full screen mode is entered. |
valueChanged | public void valueChanged(TreeSelectionEvent e)(Code) | | Someone changed the selection of the outline tree. Go to the new
page.
|
|
|
|