public interface Autoscroll
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
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
referred to as
the "autoscrolling region", for a predefined period of time, this will
result in repeated scroll requests to the
until the drag
Cursor resumes its motion.
Insetsdescribing the autoscrolling region or border relative to the geometry of the implementing Component.
This value is read once by the
upon entry of the drag
into the associated
void autoscroll(Point cursorLocn)
Pointindicating the location of the cursor that triggered this operation.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.