Package org.apache.fop.render.awt.viewer
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 TypeMethodDescriptionvoid
void
void
void
void
void
void
-
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:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-