javax.swing.plaf.basic
public class BasicSliderUI.TrackListener extends MouseInputAdapter
UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.
| Field Summary | |
|---|---|
| protected int | currentMouseX The current X position of the mouse. |
| protected int | currentMouseY The current Y position of the mouse. |
| protected int | offset
The offset between the current slider value and the cursor's position. |
| Method Summary | |
|---|---|
| void | mouseDragged(MouseEvent e)
Called when the mouse has been dragged. |
| void | mouseMoved(MouseEvent e)
Called when the mouse has moved over a component but no buttons have
been pressed yet.
|
| void | mousePressed(MouseEvent e)
Called when the mouse is pressed. |
| void | mouseReleased(MouseEvent e)
Called when the mouse is released. |
| boolean | shouldScroll(int direction)
Indicates whether the thumb should scroll in the given direction.
|
Parameters: e A {@link MouseEvent}
Parameters: e A {@link MouseEvent}
Parameters: e A {@link MouseEvent}
Parameters: e A {@link MouseEvent}
Parameters: direction The direction to check.
Returns: True if the thumb should move in that direction.