protected class BasicScrollBarUI.ScrollListener extends Object implements ActionListener
Constructor and Description |
---|
BasicScrollBarUI.ScrollListener()
Creates a new ScrollListener object.
|
BasicScrollBarUI.ScrollListener(int dir,
boolean block)
Creates a new ScrollListener object using the given direction and
block.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Called every time the timer reaches its interval.
|
void |
setDirection(int direction)
Sets the direction to scroll in.
|
void |
setScrollByBlock(boolean block)
Sets whether scrolling will be done in blocks.
|
public BasicScrollBarUI.ScrollListener()
public BasicScrollBarUI.ScrollListener(int dir, boolean block)
dir
- The direction to move in.block
- Whether movement will be in blocks.public void setDirection(int direction)
direction
- The direction to scroll in.public void setScrollByBlock(boolean block)
block
- Whether scrolling will be in blocks.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The ActionEvent fired by the timer.