The "viewer" package contains the classes required to create a Swing application to display PDFs. The design revolves around a hierarchy of
JComponentobjects which provided successively more features. See the tutorial for more information.
Interface Summary Interface Description DocumentPanelListenerA Listener that should be implemented by any objects wanting to be notified whenever a
PagePanelInteractionListenerA listener that should be implemented by any objects wanting to be notified whenever a
PagePanelListenerA listener that should be implemented by any objects wanting to be notified whenever a
PDFBackgroundTaskThis interface should be implemented by any features in the Viewer that run in a background thread. SidePanelRepresents a side-panel in a
Class Summary Class Description ActionHandler AnnotationComponentFactoryA type of ViewerFeature that creates a
JComponentto represent a
PDFAnnotationon the page.
DocumentPanelis the basic component that displays a PDF, and may be instantiated on it's own or as part of a
DocumentPanelEventRepresents an event on a
DocumentPanelindicating that document has changed somehow.
DocumentViewportdisplays a view of a PDF inside a
DocumentPanel, although it can also be instantiated on it's own if required.
DocumentViewportthat displays two pages at a time.
ExporterA type of
ViewerFeaturewhich allows PDF's to be saved in a variety of formats.
KeyStore, providing high-level management functions and the ability to load and save the KeyStore, selecting the file via a Swing dialog.
LinearizedSupportA class which handles all the support for Linearized document loaded by a DocumentPanel. MultiPageDocumentViewportA
DocumentViewportthat displays all the pages of a PDF in one column (or row) in the viewport.
NullDocumentViewportA DocumentViewport that doesn't display anything. PagePanelThe
PagePanelclass is the lowest-level class for rendering a
PagePanelEventRepresents an event on a
PagePanelindicating that document has changed somehow.
PagePanelInteractionEventRepresents an interaction (currently only mouse) event on a
PasswordPromptEncryptionHandlerAn extension of the
StandardEncryptionHandlerthat will pop up a password dialog to request the password if necessary.
PDFToolThis 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. PDFViewerThe
PDFViewerclass is a simple Swing PDF viewer application.
PublicKeyPromptEncryptionHandlerAn extension of the
PublicKeyEncryptionHandlerthat will pop up a dialog allowing the user to select a KeyStore to select a private key from if necessary.
SidePanelFactoryA type of ViewerFeature that creates
SignatureProviderA ViewerFeature that acts as a service provider for applying Digital Signatures. SinglePageDocumentViewportA type of
DocumentViewportthat displays a single page.
ToggleViewerWidgetAn subclass of
ViewerWidgetwhich causes the widget to be toggled on or off, rather than simply pushed.
UtilA utility class that handles localized Strings, display of error messages and so on. ViewerEventAn event which is raised by the Viewer when a
ViewerFeatureThe ViewerFeature class can be used to control the various features of the
PDFViewer, such as widgets, side panels, annotations and action handlers.
ViewerWidgetA type of ViewerFeature that adds a "widget" to a