Class PagePane
java.lang.Object
org.apache.pdfbox.debugger.pagepane.PagePane
- All Implemented Interfaces:
ActionListener,MouseListener,MouseMotionListener,EventListener,AncestorListener
public class PagePane
extends Object
implements ActionListener, AncestorListener, MouseMotionListener, MouseListener
Display the page number and a page rendering.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classNote that PDDocument is not officially thread safe, caution advised. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final AffineTransformprivate final PDDocumentprivate ImageTypeMenuprivate JLabelprivate Stringprivate static final org.apache.commons.logging.Logprivate final PDPageprivate intprivate JPanelprivate final Map<PDRectangle,String> private RenderDestinationMenuprivate RotationMenuprivate final JLabelprivate ZoomMenu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent actionEvent) voidancestorAdded(AncestorEvent ancestorEvent) voidancestorMoved(AncestorEvent ancestorEvent) voidancestorRemoved(AncestorEvent ancestorEvent) private voidprivate voidcollectLinkLocation(PDAnnotationLink linkAnnotation) private voidgetPanel()Returns the main panel that hold all the UI elements.private voidprivate voidinitUI()voidvoidvoidvoidvoidCatch mouse event to display cursor position in PDF coordinates in the status bar.voidvoidprivate void
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
panel
-
pageIndex
private int pageIndex -
document
-
label
-
zoomMenu
-
rotationMenu
-
imageTypeMenu
-
renderDestinationMenu
-
statuslabel
-
page
-
labelText
-
currentURI
-
rectMap
-
defaultTransform
-
-
Constructor Details
-
PagePane
-
-
Method Details
-
initRectMap
private void initRectMap() -
collectLinkLocations
- Throws:
IOException
-
collectLinkLocation
- Throws:
IOException
-
collectFieldLocations
- Throws:
IOException
-
initUI
private void initUI() -
getPanel
Returns the main panel that hold all the UI elements.- Returns:
- JPanel instance
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
startRendering
private void startRendering() -
ancestorAdded
- Specified by:
ancestorAddedin interfaceAncestorListener
-
ancestorRemoved
- Specified by:
ancestorRemovedin interfaceAncestorListener
-
ancestorMoved
- Specified by:
ancestorMovedin interfaceAncestorListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
Catch mouse event to display cursor position in PDF coordinates in the status bar.- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
e- mouse event with position
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-