In such situations it is desirable that the GUI control detect this and institute a scroll operation in order to make obscured region(s) visible to the user. This feature is known as autoscrolling.
If a GUI control is both an active DropTarget
and is also scrollable, it
can receive notifications of autoscrolling gestures by the user from
the DnD system by implementing this interface.
An autoscrolling gesture is initiated by the user by keeping the drag
cursor motionless with a border region of the Component,
referred to as
the "autoscrolling region", for a predefined period of time, this will
result in repeated scroll requests to the Component
until the drag Cursor resumes its motion.
| Modifier and Type | Method and Description |
|---|---|
| public void | autoscroll(Point
A cursorLocn)Point indicating the
location of the cursor that triggered this operation.notify the |
| public Insets | Returns: the InsetsThis method returns the |
| autoscroll | back to summary |
|---|---|
| public void autoscroll(Point cursorLocn) notify the
| |
| getAutoscrollInsets | back to summary |
|---|---|
| public Insets getAutoscrollInsets() This method returns the
This value is read once by the
| |