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 class
Note that PDDocument is not officially thread safe, caution advised. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final AffineTransform
private final PDDocument
private ImageTypeMenu
private JLabel
private String
private static final org.apache.commons.logging.Log
private final PDPage
private int
private JPanel
private final Map<PDRectangle,
String> private RenderDestinationMenu
private RotationMenu
private final JLabel
private ZoomMenu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent actionEvent) void
ancestorAdded
(AncestorEvent ancestorEvent) void
ancestorMoved
(AncestorEvent ancestorEvent) void
ancestorRemoved
(AncestorEvent ancestorEvent) private void
private void
collectLinkLocation
(PDAnnotationLink linkAnnotation) private void
getPanel()
Returns the main panel that hold all the UI elements.private void
private void
initUI()
void
void
void
void
void
Catch mouse event to display cursor position in PDF coordinates in the status bar.void
void
private 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:
actionPerformed
in interfaceActionListener
-
startRendering
private void startRendering() -
ancestorAdded
- Specified by:
ancestorAdded
in interfaceAncestorListener
-
ancestorRemoved
- Specified by:
ancestorRemoved
in interfaceAncestorListener
-
ancestorMoved
- Specified by:
ancestorMoved
in interfaceAncestorListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
Catch mouse event to display cursor position in PDF coordinates in the status bar.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Parameters:
e
- mouse event with position
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-