public class SmartScroller extends Object implements AdjustmentListener
Modifier and Type | Field and Description |
---|---|
static int |
END |
static int |
HORIZONTAL |
static int |
START |
static int |
VERTICAL |
Constructor and Description |
---|
SmartScroller(JScrollPane scrollPane)
Convenience constructor.
|
SmartScroller(JScrollPane scrollPane,
int viewportPosition)
Convenience constructor.
|
SmartScroller(JScrollPane scrollPane,
int scrollDirection,
int viewportPosition)
Specify how the SmartScroller will function.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustmentValueChanged(AdjustmentEvent e) |
public static final int HORIZONTAL
public static final int VERTICAL
public static final int START
public static final int END
public SmartScroller(JScrollPane scrollPane)
scrollPane
- the scroll pane to monitorpublic SmartScroller(JScrollPane scrollPane, int viewportPosition)
scrollPane
- the scroll pane to monitorviewportPosition
- valid values are START and ENDpublic SmartScroller(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 ENDpublic void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged
in interface AdjustmentListener