Package org.faceless.pdf2.viewer2
The "viewer" package contains the classes required to create a Swing application to
display PDFs. The design revolves around a hierarchy of
JComponent objects
which provided successively more features. See the tutorial
for more information.-
Interface Summary Interface Description DocumentPanelListener A Listener that should be implemented by any objects wanting to be notified whenever aDocumentPanelEventis raised.PagePanelInteractionListener A listener that should be implemented by any objects wanting to be notified whenever aPagePanelInteractionEventis raised.PagePanelListener A listener that should be implemented by any objects wanting to be notified whenever aPagePanelEventis raised.PDFBackgroundTask This interface should be implemented by any features in the Viewer that run in a background thread.SidePanel Represents a side-panel in aDocumentPanel. -
Class Summary Class Description ActionHandler A type ofViewerFeaturethat will run aPDFActionon a document, usually as a result of a link or button being clicked.AnnotationComponentFactory A type of ViewerFeature that creates aJComponentto represent aPDFAnnotationon the page.DocumentPanel ADocumentPanelis the basic component that displays a PDF, and may be instantiated on it's own or as part of aPDFViewer.DocumentPanelEvent Represents an event on aDocumentPanelindicating that document has changed somehow.DocumentViewport ADocumentViewportdisplays a view of a PDF inside aDocumentPanel, although it can also be instantiated on it's own if required.DualPageDocumentViewport ADocumentViewportthat displays two pages at a time.Exporter A type ofViewerFeaturewhich allows PDF's to be saved in a variety of formats.Importer A type ofViewerFeaturewhich takes care of loading a PDF file into aPDFViewer.JSManager Handles the Event - primarily JavaScript events - raised during the lifetime of the viewer.KeyStoreManager This class is a wrapper around aKeyStore, providing high-level management functions and the ability to load and save the KeyStore, selecting the file via a Swing dialog.LinearizedSupport A class which handles all the support for Linearized document loaded by a DocumentPanel.MultiPageDocumentViewport ADocumentViewportthat displays all the pages of a PDF in one column (or row) in the viewport.NullDocumentViewport A DocumentViewport that doesn't display anything.PagePanel PagePanelEvent Represents an event on aPagePanelindicating that document has changed somehow.PagePanelInteractionEvent Represents an interaction (currently only mouse) event on aPagePanel.PasswordPromptEncryptionHandler An extension of theStandardEncryptionHandlerthat will pop up a password dialog to request the password if necessary.PDFTool This class is a utility class which does many of the common tasks required on PDFs - joining them, completing forms, converting to bitmap images or viewing them.PDFViewer ThePDFViewerclass is a simple Swing PDF viewer application.PublicKeyPromptEncryptionHandler An extension of thePublicKeyEncryptionHandlerthat will pop up a dialog allowing the user to select a KeyStore to select a private key from if necessary.SidePanelFactory A type of ViewerFeature that createsSidePanelobjects.SignatureProvider A ViewerFeature that acts as a service provider for applying Digital Signatures.SinglePageDocumentViewport A type ofDocumentViewportthat displays a single page.ToggleViewerWidget An subclass ofViewerWidgetwhich causes the widget to be toggled on or off, rather than simply pushed.Util A utility class that handles localized Strings, display of error messages and so on.ViewerEvent An event which is raised by the Viewer when aViewerWidgetis activated.ViewerFeature The ViewerFeature class can be used to control the various features of thePDFViewer, such as widgets, side panels, annotations and action handlers.ViewerWidget A type of ViewerFeature that adds a "widget" to aPDFViewer.