Class PreviewPanel.ViewportScroller
java.lang.Object
org.apache.fop.render.awt.viewer.PreviewPanel.ViewportScroller
- All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
- Enclosing class:
PreviewPanel
private class PreviewPanel.ViewportScroller
extends Object
implements MouseListener, MouseMotionListener
Allows any mouse drag on the page area to scroll the display window.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
viewport
The viewport to be scrolled -
startPosX
private int startPosXStarting position of a mouse drag - X co-ordinate -
startPosY
private int startPosYStarting position of a mouse drag - Y co-ordinate
-
-
Constructor Details
-
ViewportScroller
ViewportScroller(JViewport vp)
-
-
Method Details
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-