public class AutoscrollSupport extends Object implements Autoscroll
Constructor and Description |
---|
AutoscrollSupport(JComponent comp)
Constructs a new autoscroll support object.
|
AutoscrollSupport(JComponent comp,
Insets insets)
Constructs a new autoscroll support object.
|
AutoscrollSupport(JComponent comp,
Insets insets,
Insets scrollUnits)
Constructs a new autoscroll support object.
|
Modifier and Type | Method and Description |
---|---|
void |
autoscroll(Point cursorLoc) |
Insets |
getAutoscrollInsets() |
public AutoscrollSupport(JComponent comp)
comp
- the component for which to activate automatic scrolling during
drag and drop operationspublic AutoscrollSupport(JComponent comp, Insets insets)
comp
- the component for which to activate automatic scrolling during
drag and drop operationsinsets
- the container insets where autoscrolling should be activepublic AutoscrollSupport(JComponent comp, Insets insets, Insets scrollUnits)
comp
- the component for which to activate automatic scrolling during
drag and drop operationsinsets
- the container insets where autoscrolling should be activescrollUnits
- the number of units to scroll when the mouse cursor causes
automatic scrollingpublic void autoscroll(Point cursorLoc)
autoscroll
in interface Autoscroll
public Insets getAutoscrollInsets()
getAutoscrollInsets
in interface Autoscroll
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.