| Modifier and Type | Field and Description |
|---|---|
| private static JComponent | |
| private static MouseEvent | |
| private static Autoscroller | sharedInstance
Global Autoscroller. |
| private static Timer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | _isRunning(JComponent c)
Returns true if autoscrolling is currently running for the specified widget. |
| private void | |
| private void | |
| public void | actionPerformed(ActionEvent x)
Implements java. ActionListener method. |
| public static boolean | |
| public static void | processMouseDragged(MouseEvent e)
Invoked when a mouse dragged event occurs, will start the autoscroller if necessary. |
| private void | |
| public static void |
| component | back to summary |
|---|---|
| private static JComponent component | |
| event | back to summary |
|---|---|
| private static MouseEvent event | |
| sharedInstance | back to summary |
|---|---|
| private static Autoscroller sharedInstance Global Autoscroller. | |
| timer | back to summary |
|---|---|
| private static Timer timer | |
| Autoscroller | back to summary |
|---|---|
| pack-priv Autoscroller() | |
| _isRunning | back to summary |
|---|---|
| private boolean _isRunning(JComponent c) Returns true if autoscrolling is currently running for the specified widget. | |
| _processMouseDragged | back to summary |
|---|---|
| private void _processMouseDragged(MouseEvent e) MouseListener method, invokes start/stop as necessary. | |
| _stop | back to summary |
|---|---|
| private void _stop(JComponent c) Stops scrolling for the passed in widget. | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent x) Implements java. ActionListener method. Invoked when the Timer fires. This will scroll if necessary.
| |
| isRunning | back to summary |
|---|---|
| public static boolean isRunning(JComponent c) Stops autoscroll events from happening on the specified component. | |
| processMouseDragged | back to summary |
|---|---|
| public static void processMouseDragged(MouseEvent e) Invoked when a mouse dragged event occurs, will start the autoscroller if necessary. | |
| start | back to summary |
|---|---|
| private void start(JComponent c, MouseEvent e) Starts the timer targeting the passed in component.
| |
| stop | back to summary |
|---|---|
| public static void stop(JComponent c) Stops autoscroll events from happening on the specified component. | |