|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.basic.BasicSliderUI.ScrollListener
public class BasicSliderUI.ScrollListener
Helper class that listens to our swing timer. This class is responsible for listening to the timer and moving the thumb in the proper direction every interval.
Constructor Summary | |
---|---|
BasicSliderUI.ScrollListener()
Creates a new ScrollListener object. |
|
BasicSliderUI.ScrollListener(int dir,
boolean block)
Creates a new ScrollListener object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicSliderUI.ScrollListener()
public BasicSliderUI.ScrollListener(int dir, boolean block)
dir
- The direction to scroll in.block
- If movement will be in blocks.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |