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.
- Author:
- Tilman Hausherr, John Hewson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent actionEvent) void
ancestorAdded
(AncestorEvent ancestorEvent) void
ancestorMoved
(AncestorEvent ancestorEvent) void
ancestorRemoved
(AncestorEvent ancestorEvent) getPanel()
Returns the main panel that hold all the UI elements.void
void
void
void
void
Catch mouse event to display cursor position in PDF coordinates in the status bar.void
void
-
Constructor Details
-
PagePane
public PagePane(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.pdfbox.cos.COSDictionary pageDict, JLabel statuslabel)
-
-
Method Details
-
getPanel
Returns the main panel that hold all the UI elements.- Returns:
- JPanel instance
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
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
-