java.lang.Object
furbelow.Autoscroller
- All Implemented Interfaces:
Autoscroll
Provides consistent drag/drop autoscrolling behavior for components
which implement
Autoscroll. The component's implementation
of Autoscroll.getAutoscrollInsets() and
Autoscroll.autoscroll(Point) should call through to this object's
methods.The default behavior is to scroll by the unit/line increment when near the edge of the viewport or the block/page increment when very near the edge.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAutoscroller(JComponent scrolled) Autoscroller(JComponent scrolled, int normal, int fast, int unit, int block) -
Method Summary
Modifier and TypeMethodDescriptionvoidautoscroll(Point where) Invoke fromAutoscroll.autoscroll(Point).protected InsetsReturn the insets of the component's rectangle that should be active.protected Insets
-
Field Details
-
MARGIN
public static int MARGIN
-
-
Constructor Details
-
Autoscroller
-
Autoscroller
-
-
Method Details
-
fastScrollInsets
-
scrollInsets
-
getAutoscrollInsets
Return the insets of the component's rectangle that should be active. Note that the actual inset values represent pixels in the component coordinate space which appear in the viewport.- Specified by:
getAutoscrollInsetsin interfaceAutoscroll
-
autoscroll
Invoke fromAutoscroll.autoscroll(Point).- Specified by:
autoscrollin interfaceAutoscroll- Parameters:
where- The current cursor location in the target component coordinate space
-