-
public interface Autoscroll
During DnD operations it is possible that a user may wish to drop the subject of the operation on a region of a scrollable GUI control that is not currently visible to the user.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 theComponent
until the dragCursor
resumes its motion.- Since:
- 1.2
-
-
Method Summary
Methods Modifier and Type Method and Description void
autoscroll(Point cursorLocn)
notify theComponent
to autoscrollInsets
getAutoscrollInsets()
This method returns theInsets
describing the autoscrolling region or border relative to the geometry of the implementing Component.
-
-
-
Method Detail
-
getAutoscrollInsets
Insets getAutoscrollInsets()
This method returns theInsets
describing the autoscrolling region or border relative to the geometry of the implementing Component.This value is read once by the
DropTarget
upon entry of the dragCursor
into the associatedComponent
.- Returns:
- the Insets
-
autoscroll
void autoscroll(Point cursorLocn)
notify theComponent
to autoscroll- Parameters:
cursorLocn
- APoint
indicating the location of the cursor that triggered this operation.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/awt/dnd/Autoscroll.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.