public class Autoscroller extends Object implements Autoscroll
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.
Modifier and Type | Field and Description |
---|---|
static int |
MARGIN |
Constructor and Description |
---|
Autoscroller(JComponent scrolled) |
Autoscroller(JComponent scrolled,
int normal,
int fast,
int unit,
int block) |
Modifier and Type | Method and Description |
---|---|
void |
autoscroll(Point where)
Invoke from
Autoscroll.autoscroll(Point) . |
protected Insets |
fastScrollInsets() |
Insets |
getAutoscrollInsets()
Return the insets of the component's rectangle that should be
active.
|
protected Insets |
scrollInsets() |
public Autoscroller(JComponent scrolled)
public Autoscroller(JComponent scrolled, int normal, int fast, int unit, int block)
protected Insets fastScrollInsets()
protected Insets scrollInsets()
public Insets getAutoscrollInsets()
getAutoscrollInsets
in interface Autoscroll
public void autoscroll(Point where)
Autoscroll.autoscroll(Point)
.autoscroll
in interface Autoscroll
where
- The current cursor location in the target component
coordinate spaceCopyright © 2023. All rights reserved.