Class PageWrapper

  • All Implemented Interfaces:
    java.awt.event.MouseMotionListener, java.util.EventListener

    public class PageWrapper
    extends java.lang.Object
    implements java.awt.event.MouseMotionListener
    A class to handle some prettyness around a single PDF page.
    Version:
    $Revision: 1.5 $
    Author:
    Ben Litchfield
    • Constructor Summary

      Constructors 
      Constructor Description
      PageWrapper​(PDFReader aReader)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void displayPage​(PDPage page)
      This will display the PDF page in this component.
      javax.swing.JPanel getPanel()
      This will get the JPanel that can be displayed.
      void mouseDragged​(java.awt.event.MouseEvent e)
      void mouseMoved​(java.awt.event.MouseEvent e)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageWrapper

        public PageWrapper​(PDFReader aReader)
                    throws java.io.IOException
        Constructor.
        Parameters:
        aReader - The reader application that holds this page.
        Throws:
        java.io.IOException - If there is an error creating the page drawing objects.
    • Method Detail

      • displayPage

        public void displayPage​(PDPage page)
        This will display the PDF page in this component.
        Parameters:
        page - The PDF page to display.
      • getPanel

        public javax.swing.JPanel getPanel()
        This will get the JPanel that can be displayed.
        Returns:
        The panel with the displayed PDF page.
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent e)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener