Package org.apache.pdfbox.pdfviewer
Class PageWrapper
java.lang.Object
org.apache.pdfbox.pdfviewer.PageWrapper
- All Implemented Interfaces:
MouseMotionListener
,EventListener
A class to handle some prettyness around a single PDF page.
- Version:
- $Revision: 1.5 $
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayPage
(PDPage page) This will display the PDF page in this component.getPanel()
This will get the JPanel that can be displayed.void
void
-
Constructor Details
-
PageWrapper
Constructor.- Parameters:
aReader
- The reader application that holds this page.- Throws:
IOException
- If there is an error creating the page drawing objects.
-
-
Method Details
-
displayPage
This will display the PDF page in this component.- Parameters:
page
- The PDF page to display.
-
getPanel
This will get the JPanel that can be displayed.- Returns:
- The panel with the displayed PDF page.
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-