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 aDocumentPanelEvent
is raised.PagePanelInteractionListener A listener that should be implemented by any objects wanting to be notified whenever aPagePanelInteractionEvent
is raised.PagePanelListener A listener that should be implemented by any objects wanting to be notified whenever aPagePanelEvent
is 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 ofViewerFeature
that will run aPDFAction
on a document, usually as a result of a link or button being clicked.AnnotationComponentFactory A type of ViewerFeature that creates aJComponent
to represent aPDFAnnotation
on the page.DocumentPanel ADocumentPanel
is 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 aDocumentPanel
indicating that document has changed somehow.DocumentViewport ADocumentViewport
displays a view of a PDF inside aDocumentPanel
, although it can also be instantiated on it's own if required.DualPageDocumentViewport ADocumentViewport
that displays two pages at a time.Exporter A type ofViewerFeature
which allows PDF's to be saved in a variety of formats.Importer A type ofViewerFeature
which 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 ADocumentViewport
that 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 aPagePanel
indicating that document has changed somehow.PagePanelInteractionEvent Represents an interaction (currently only mouse) event on aPagePanel
.PasswordPromptEncryptionHandler An extension of theStandardEncryptionHandler
that 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 ThePDFViewer
class is a simple Swing PDF viewer application.PublicKeyPromptEncryptionHandler An extension of thePublicKeyEncryptionHandler
that 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 createsSidePanel
objects.SignatureProvider A ViewerFeature that acts as a service provider for applying Digital Signatures.SinglePageDocumentViewport A type ofDocumentViewport
that displays a single page.ToggleViewerWidget An subclass ofViewerWidget
which 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 aViewerWidget
is 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
.