- java.lang.Object
-
- util.programmouseevent.AutoScrollerAndClickKeyHandler
-
public class AutoScrollerAndClickKeyHandler extends java.lang.Object
A class to support Panning for scrolling.- Since:
- 4.0.2
- Author:
- René Mach
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AutoScrollerAndClickKeyHandler.ProgramAutoScrollListener
-
Constructor Summary
Constructors Constructor Description AutoScrollerAndClickKeyHandler(javax.swing.JComponent scrollComponent, AutoScrollerAndClickKeyHandler.ProgramAutoScrollListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calcualteLastDragDelta(int x, int y)
java.awt.Point
getDraggingPoint()
java.awt.Point
getDraggingPointOnScreen()
int
getLastDragDeltaX()
int
getLastDragDeltaY()
long
getLastDragTime()
boolean
isScrolling()
void
scrollBy(int deltaX, int deltaY)
void
setDraggingPoint(java.awt.Point p)
void
setDraggingPointOnScreen(java.awt.Point p)
void
setOwner(ContextMenuIf owner)
void
startAutoScroll(java.awt.Point scroll, int scaling)
boolean
stopAutoScroll(boolean setCursor)
void
stopClickIfNecessary()
-
-
-
Constructor Detail
-
AutoScrollerAndClickKeyHandler
public AutoScrollerAndClickKeyHandler(javax.swing.JComponent scrollComponent, AutoScrollerAndClickKeyHandler.ProgramAutoScrollListener listener)
-
-
Method Detail
-
setOwner
public void setOwner(ContextMenuIf owner)
-
startAutoScroll
public void startAutoScroll(java.awt.Point scroll, int scaling)
-
scrollBy
public void scrollBy(int deltaX, int deltaY)
-
stopAutoScroll
public boolean stopAutoScroll(boolean setCursor)
-
setDraggingPoint
public void setDraggingPoint(java.awt.Point p)
-
setDraggingPointOnScreen
public void setDraggingPointOnScreen(java.awt.Point p)
-
calcualteLastDragDelta
public void calcualteLastDragDelta(int x, int y)
-
getDraggingPoint
public java.awt.Point getDraggingPoint()
-
getDraggingPointOnScreen
public java.awt.Point getDraggingPointOnScreen()
-
getLastDragDeltaX
public int getLastDragDeltaX()
-
getLastDragDeltaY
public int getLastDragDeltaY()
-
getLastDragTime
public long getLastDragTime()
-
isScrolling
public boolean isScrolling()
-
stopClickIfNecessary
public void stopClickIfNecessary()
-
-