public class SmartScroller
extends java.lang.Object
implements java.awt.event.AdjustmentListener
Modifier and Type | Field and Description |
---|---|
static int |
END |
static int |
HORIZONTAL |
static int |
START |
static int |
VERTICAL |
Constructor and Description |
---|
SmartScroller(javax.swing.JScrollPane scrollPane)
Convenience constructor.
|
SmartScroller(javax.swing.JScrollPane scrollPane,
int viewportPosition)
Convenience constructor.
|
SmartScroller(javax.swing.JScrollPane scrollPane,
int scrollDirection,
int viewportPosition)
Specify how the SmartScroller will function.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e) |
public static final int HORIZONTAL
public static final int VERTICAL
public static final int START
public static final int END
public SmartScroller(javax.swing.JScrollPane scrollPane)
scrollPane
- the scroll pane to monitorpublic SmartScroller(javax.swing.JScrollPane scrollPane, int viewportPosition)
scrollPane
- the scroll pane to monitorviewportPosition
- valid values are START and ENDpublic SmartScroller(javax.swing.JScrollPane scrollPane, int scrollDirection, int viewportPosition)
scrollPane
- the scroll pane to monitorscrollDirection
- indicates which JScrollBar to monitor.
Valid values are HORIZONTAL and VERTICAL.viewportPosition
- indicates where the viewport will normally be
positioned as data is added.
Valid values are START and END