# Package org.faceless.pdf2.viewer2

The "viewer" package contains the classes required to create a Swing application to display PDFs.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  DocumentPanelListener | A Listener that should be implemented by any objects wanting to be notified whenever a `DocumentPanelEvent` is raised.
  PagePanelInteractionListener | A listener that should be implemented by any objects wanting to be notified whenever a `PagePanelInteractionEvent` is raised.
  PagePanelListener | A listener that should be implemented by any objects wanting to be notified whenever a `PagePanelEvent` 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 a `DocumentPanel`.

- Class Summary
  Class | Description
  --- | ---
  ActionHandler | A type of `ViewerFeature` that will run a `PDFAction` on a document, usually as a result of a link or button being clicked.
  AnnotationComponentFactory | A type of ViewerFeature that creates a `JComponent` to represent a `PDFAnnotation` on the page.
  DocumentPanel | A `DocumentPanel` is the basic component that displays a PDF, and may be instantiated on it's own or as part of a `PDFViewer`.
  DocumentPanelEvent | Represents an event on a `DocumentPanel` indicating that document has changed somehow.
  DocumentViewport | A `DocumentViewport` displays a view of a PDF inside a `DocumentPanel`, although it can also be instantiated on it's own if required.
  DualPageDocumentViewport | A `DocumentViewport` that displays two pages at a time.
  Exporter | A type of `ViewerFeature` which allows PDF's to be saved in a variety of formats.
  Importer | A type of `ViewerFeature` which takes care of loading a PDF file into a `PDFViewer`.
  JSManager | Handles the `Event`s - primarily JavaScript events - raised during the lifetime of the viewer.
  KeyStoreManager | This class is a wrapper around a `KeyStore`, 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 | A `DocumentViewport` 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 | The `PagePanel` class is the lowest-level class for rendering a `PDFPage` as a `JPanel`.
  PagePanelEvent | Represents an event on a `PagePanel` indicating that document has changed somehow.
  PagePanelInteractionEvent | Represents an interaction (currently only mouse) event on a `PagePanel`.
  PasswordPromptEncryptionHandler | An extension of the `StandardEncryptionHandler` 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 | The `PDFViewer` class is a simple Swing PDF viewer application.
  PDFViewerApplet | An applet wrapping the `PDFViewer`.
  PublicKeyPromptEncryptionHandler | An extension of the `PublicKeyEncryptionHandler` 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 creates `SidePanel` objects.
  SignatureProvider | A ViewerFeature that acts as a service provider for applying Digital Signatures.
  SinglePageDocumentViewport | A type of `DocumentViewport` that displays a single page.
  ToggleViewerWidget | An subclass of `ViewerWidget` 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 a `ViewerWidget` is activated.
  ViewerFeature | The ViewerFeature class can be used to control the various features of the `PDFViewer`, such as widgets, side panels, annotations and action handlers.
  ViewerWidget | A type of ViewerFeature that adds a "widget" to a `PDFViewer`.

## Package org.faceless.pdf2.viewer2 Description

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.

Copyright © 2001-2015 Big Faceless Organization