Java Doc for PDFViewer.java in  » PDF » PDF-Renderer » com » sun » pdfview » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » PDF Renderer » com.sun.pdfview 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JFrame
   com.sun.pdfview.PDFViewer

PDFViewer
public class PDFViewer extends JFrame implements KeyListener,TreeSelectionListener,PageChangeListener(Code)
A PDF Viewer application that integrates with the Meeting Central project.

Inner Class :class ZoomAction extends AbstractAction
Inner Class :class ThumbAction extends AbstractAction implements PropertyChangeListener
Inner Class :class PagePreparer extends Thread
Inner Class :class PrintThread extends Thread
Inner Class :class PerformFullScreenMode implements Runnable
Inner Class :class PageBuilder implements Runnable

Field Summary
final public static  StringTITLE
    
 ActioncloseAction
    
 PDFFilecurFile
    
 intcurpage
    
 booleandoThumb
    
 JMenudocMenu
    
 StringdocName
    
 FlagdocWaiter
    
 ActionfirstAction
    
 ActionfitInWindowAction
    
 PagePanelfspp
    
 FullScreenWindowfullScreen
    
 ActionfullScreenAction
    
 JToggleButtonfullScreenButton
    
 ActionlastAction
    
 ActionnextAction
    
 JDialogolf
    
 ActionopenAction
    
 OutlineNodeoutline
    
 PagePanelpage
    
 JTextFieldpageField
    
 PagePreparerpagePrep
    
 ActionpageSetupAction
    
 PageBuilderpb
    
 FileFilterpdfFilter
     A file filter for PDF files.
 PageFormatpformat
    
 ActionprevAction
    
 ActionprintAction
    
 ActionquitAction
    
 JSplitPanesplit
    
 ThumbActionthumbAction
    
 ThumbPanelthumbs
    
 JScrollPanethumbscroll
    
 ZoomActionzoomInAction
    
 ZoomActionzoomOutAction
    
 ActionzoomToolAction
    

Constructor Summary
public  PDFViewer(boolean useThumbs)
     Create a new PDFViewer based on a user, with or without a thumbnail panel.

Method Summary
public  voiddoClose()
     Close the current document.
public  voiddoFirst()
    
public  voiddoFitInWindow()
    
public  voiddoFullScreen(boolean force)
     Enter full screen mode
Parameters:
  force - true if the user should be prompted for a screen touse in a multiple-monitor setup.
public  voiddoLast()
    
public  voiddoNext()
    
public  voiddoOpen()
    
public  voiddoOpen(String name)
    
public  voiddoPageSetup()
    
public  voiddoPageTyped()
    
public  voiddoPrev()
    
public  voiddoPrint()
     Print the current document.
public  voiddoQuit()
     Shuts down all known threads.
public  voiddoThumbs(boolean show)
    
public  voiddoZoom(double factor)
    
public  voiddoZoomTool()
    
public  voidforceGotoPage(int pagenum)
     Changes the displayed page.
public  IcongetIcon(String name)
    
public  voidgotoPage(int pagenum)
     Changes the displayed page, desyncing if we're not on the same page as a presenter.
protected  voidinit()
     Initialize this PDFViewer by creating the GUI.
public  voidkeyPressed(KeyEvent evt)
    
public  voidkeyReleased(KeyEvent evt)
    
public  voidkeyTyped(KeyEvent evt)
    
public static  voidmain(String args)
    
public  voidopenError(String message)
     Display a dialog indicating an error.
public  voidopenFile(File file)
     Open a specific pdf file.
public  voidsetEnabling()
     Enable or disable all of the actions based on the current state.
public  voidsetFullScreenMode(boolean full, boolean force)
     Starts or ends full screen mode.
public  voidvalueChanged(TreeSelectionEvent e)
     Someone changed the selection of the outline tree.

Field Detail
TITLE
final public static String TITLE(Code)



closeAction
Action closeAction(Code)



curFile
PDFFile curFile(Code)
The current PDFFile



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



docMenu
JMenu docMenu(Code)
the document menu



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



firstAction
Action firstAction(Code)



fitInWindowAction
Action fitInWindowAction(Code)



fspp
PagePanel fspp(Code)
The full screen page display, or null if not in full screen mode



fullScreen
FullScreenWindow fullScreen(Code)
the full screen window, or null if not in full screen mode



fullScreenAction
Action fullScreenAction(Code)



fullScreenButton
JToggleButton fullScreenButton(Code)
the full screen button



lastAction
Action lastAction(Code)



nextAction
Action nextAction(Code)



olf
JDialog olf(Code)
the window containing the pdf outline, or null if one doesn't exist



openAction
Action openAction(Code)



outline
OutlineNode outline(Code)
the root of the outline, or null if there is no outline



page
PagePanel page(Code)
The page display



pageField
JTextField pageField(Code)
the current page number text field



pagePrep
PagePreparer pagePrep(Code)
a thread that pre-loads the next page for faster response



pageSetupAction
Action pageSetupAction(Code)



pb
PageBuilder pb(Code)



pdfFilter
FileFilter pdfFilter(Code)
A file filter for PDF files.



pformat
PageFormat pformat(Code)
The page format for printing



prevAction
Action prevAction(Code)



printAction
Action printAction(Code)



quitAction
Action quitAction(Code)



split
JSplitPane split(Code)
The split between thumbs and page



thumbAction
ThumbAction thumbAction(Code)



thumbs
ThumbPanel thumbs(Code)
The thumbnail display



thumbscroll
JScrollPane thumbscroll(Code)
The thumbnail scroll pane



zoomInAction
ZoomAction zoomInAction(Code)



zoomOutAction
ZoomAction zoomOutAction(Code)



zoomToolAction
Action zoomToolAction(Code)




Constructor Detail
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.




Method Detail
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



keyReleased
public void keyReleased(KeyEvent evt)(Code)



keyTyped
public void keyTyped(KeyEvent evt)(Code)
gets key presses and tries to build a page if they're numeric



main
public static void main(String args)(Code)



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.



Fields inherited from javax.swing.JFrame
final public static int EXIT_ON_CLOSE(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected JRootPane rootPane(Code)(Java Doc)
protected boolean rootPaneCheckingEnabled(Code)(Java Doc)

Methods inherited from javax.swing.JFrame
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
protected JRootPane createRootPane()(Code)(Java Doc)
protected void frameInit()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Container getContentPane()(Code)(Java Doc)
public int getDefaultCloseOperation()(Code)(Java Doc)
public Component getGlassPane()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public JMenuBar getJMenuBar()(Code)(Java Doc)
public JLayeredPane getLayeredPane()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public static boolean isDefaultLookAndFeelDecorated()(Code)(Java Doc)
protected boolean isRootPaneCheckingEnabled()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processWindowEvent(WindowEvent e)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void repaint(long time, int x, int y, int width, int height)(Code)(Java Doc)
public void setContentPane(Container contentPane)(Code)(Java Doc)
public void setDefaultCloseOperation(int operation)(Code)(Java Doc)
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)(Code)(Java Doc)
public void setGlassPane(Component glassPane)(Code)(Java Doc)
public void setIconImage(Image image)(Code)(Java Doc)
public void setJMenuBar(JMenuBar menubar)(Code)(Java Doc)
public void setLayeredPane(JLayeredPane layeredPane)(Code)(Java Doc)
public void setLayout(LayoutManager manager)(Code)(Java Doc)
protected void setRootPane(JRootPane root)(Code)(Java Doc)
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.