Java Doc for PagePanel.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.JPanel
   com.sun.pdfview.PagePanel

PagePanel
public class PagePanel extends JPanel implements ImageObserver,MouseListener,MouseMotionListener(Code)
A Swing-based panel that displays a PDF page image. If the zoom tool is in use, allows the user to select a particular region of the image to be zoomed.


Field Summary
 Rectangle2Dclip
    
 ImagecurrentImage
    
 PDFPagecurrentPage
    
 AffineTransformcurrentXform
    
 intdownx
    
 intdowny
    
 Flagflag
     a flag indicating whether the current page is done or not.
 intoffx
    
 intoffy
    
 Rectangle2DprevClip
    
 DimensionprevSize
    
 booleanuseZoom
    
 RectanglezoomRect
    

Constructor Summary
public  PagePanel()
     Create a new PagePanel, with a default size of 800 by 600 pixels.

Method Summary
public synchronized  voidflush()
    
public  Rectangle2DgetCurClip()
    
public  DimensiongetCurSize()
    
public  PDFPagegetPage()
    
public  booleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height)
     Handles notification of the fact that some part of the image changed.
public  voidmouseClicked(MouseEvent evt)
    
public  voidmouseDragged(MouseEvent evt)
     Handles a mouseDragged event.
public  voidmouseEntered(MouseEvent evt)
    
public  voidmouseExited(MouseEvent evt)
    
public  voidmouseMoved(MouseEvent evt)
    
public  voidmousePressed(MouseEvent evt)
    
public  voidmouseReleased(MouseEvent evt)
     Handles a mouseReleased event.
public  voidpaint(Graphics g)
     Draw the image.
public  voidsetClip(Rectangle2D clip)
     Set the desired clipping region (in screen coordinates), and redraw the image.
public synchronized  voidshowPage(PDFPage page)
     Stop the generation of any previous page, and draw the new one.
public  voiduseZoomTool(boolean use)
     Turns the zoom tool on or off.
public  voidwaitForCurrentPage()
     Waits until the page is either complete or had an error.

Field Detail
clip
Rectangle2D clip(Code)
the current clip, in device space



currentImage
Image currentImage(Code)
The image of the rendered PDF page being displayed



currentPage
PDFPage currentPage(Code)
The current PDFPage that was rendered into currentImage



currentXform
AffineTransform currentXform(Code)



downx
int downx(Code)
x location of the mouse-down event



downy
int downy(Code)
y location of the mouse-down event



flag
Flag flag(Code)
a flag indicating whether the current page is done or not.



offx
int offx(Code)
The horizontal offset of the image from the left edge of the panel



offy
int offy(Code)
The vertical offset of the image from the top of the panel



prevClip
Rectangle2D prevClip(Code)
the clipping region used for the image



prevSize
Dimension prevSize(Code)
the size of the image



useZoom
boolean useZoom(Code)
whether the zoom tool is enabled



zoomRect
Rectangle zoomRect(Code)
the zooming marquee




Constructor Detail
PagePanel
public PagePanel()(Code)
Create a new PagePanel, with a default size of 800 by 600 pixels.




Method Detail
flush
public synchronized void flush()(Code)



getCurClip
public Rectangle2D getCurClip()(Code)
Gets the clipping rectangle in page space currently being displayed



getCurSize
public Dimension getCurSize()(Code)
Gets the size of the image currently being displayed



getPage
public PDFPage getPage()(Code)
Gets the page currently being displayed



imageUpdate
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)(Code)
Handles notification of the fact that some part of the image changed. Repaints that portion. true if more updates are desired.



mouseClicked
public void mouseClicked(MouseEvent evt)(Code)



mouseDragged
public void mouseDragged(MouseEvent evt)(Code)
Handles a mouseDragged event. Constrains the zoom rect to the aspect ratio of the panel unless the shift key is down.



mouseEntered
public void mouseEntered(MouseEvent evt)(Code)



mouseExited
public void mouseExited(MouseEvent evt)(Code)



mouseMoved
public void mouseMoved(MouseEvent evt)(Code)



mousePressed
public void mousePressed(MouseEvent evt)(Code)
Handles a mousePressed event



mouseReleased
public void mouseReleased(MouseEvent evt)(Code)
Handles a mouseReleased event. If zooming is turned on and there's a valid zoom rectangle, set the image clip to the zoom rect.



paint
public void paint(Graphics g)(Code)
Draw the image.



setClip
public void setClip(Rectangle2D clip)(Code)
Set the desired clipping region (in screen coordinates), and redraw the image.



showPage
public synchronized void showPage(PDFPage page)(Code)
Stop the generation of any previous page, and draw the new one.
Parameters:
  page - the PDFPage to draw.



useZoomTool
public void useZoomTool(boolean use)(Code)
Turns the zoom tool on or off. If on, mouse drags will draw the zooming marquee. If off, mouse drags are ignored.



waitForCurrentPage
public void waitForCurrentPage()(Code)
Waits until the page is either complete or had an error.



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.