Class PagePane

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.AncestorListener

    public class PagePane
    extends java.lang.Object
    implements java.awt.event.ActionListener, javax.swing.event.AncestorListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener
    Display the page number and a page rendering.
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • panel

        private javax.swing.JPanel panel
      • pageIndex

        private int pageIndex
      • label

        private javax.swing.JLabel label
      • statuslabel

        private final javax.swing.JLabel statuslabel
      • page

        private final PDPage page
      • labelText

        private java.lang.String labelText
      • currentURI

        private java.lang.String currentURI
      • rectMap

        private final java.util.Map<PDRectangle,​java.lang.String> rectMap
      • defaultTransform

        private final java.awt.geom.AffineTransform defaultTransform
    • Constructor Detail

    • Method Detail

      • initRectMap

        private void initRectMap()
      • collectLinkLocations

        private void collectLinkLocations()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • collectLinkLocation

        private void collectLinkLocation​(PDAnnotationLink linkAnnotation)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • collectFieldLocations

        private void collectFieldLocations()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • initUI

        private void initUI()
      • getPanel

        public java.awt.Component getPanel()
        Returns the main panel that hold all the UI elements.
        Returns:
        JPanel instance
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent actionEvent)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • startRendering

        private void startRendering()
      • ancestorAdded

        public void ancestorAdded​(javax.swing.event.AncestorEvent ancestorEvent)
        Specified by:
        ancestorAdded in interface javax.swing.event.AncestorListener
      • ancestorRemoved

        public void ancestorRemoved​(javax.swing.event.AncestorEvent ancestorEvent)
        Specified by:
        ancestorRemoved in interface javax.swing.event.AncestorListener
      • ancestorMoved

        public void ancestorMoved​(javax.swing.event.AncestorEvent ancestorEvent)
        Specified by:
        ancestorMoved in interface javax.swing.event.AncestorListener
      • 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)
        Catch mouse event to display cursor position in PDF coordinates in the status bar.
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Parameters:
        e - mouse event with position
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

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