javax.swing.plaf.basic
protected class BasicScrollBarUI.TrackListener extends MouseAdapter implements MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected int |
currentMouseX
The current X coordinate of the mouse.
|
protected int |
currentMouseY
The current Y coordinate of the mouse.
|
protected int |
offset
The offset between the current mouse cursor and the current value of
the scrollbar.
|
Modifier | Constructor and Description |
---|---|
protected |
BasicScrollBarUI.TrackListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
This method is called when the mouse is being dragged.
|
void |
mouseMoved(MouseEvent e)
This method is called when the mouse is moved.
|
void |
mousePressed(MouseEvent e)
This method is called when the mouse is pressed.
|
void |
mouseReleased(MouseEvent e)
This method is called when the mouse is released.
|
mouseClicked, mouseEntered, mouseExited
protected int currentMouseX
protected int currentMouseY
protected int offset
protected BasicScrollBarUI.TrackListener()
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- The MouseEvent given.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- The MouseEvent given.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
e
- The MouseEvent given.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
e
- The MouseEvent given.