public class BasicSliderUI.ScrollListener extends Object implements ActionListener
Constructor and Description |
---|
BasicSliderUI.ScrollListener()
Creates a new ScrollListener object.
|
BasicSliderUI.ScrollListener(int dir,
boolean block)
Creates a new ScrollListener object.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Called every time the swing timer reaches its interval.
|
void |
setDirection(int direction)
Sets the direction to scroll in.
|
void |
setScrollByBlock(boolean block)
Sets whether movement will be in blocks.
|
public BasicSliderUI.ScrollListener()
public BasicSliderUI.ScrollListener(int dir, boolean block)
dir
- The direction to scroll in.block
- If movement will be in blocks.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- An ActionEvent
.public void setDirection(int direction)
direction
- The direction to scroll in.public void setScrollByBlock(boolean block)
block
- If movement will be in blocks.