protected class

BasicScrollBarUI.TrackListener

extends MouseAdapter
implements MouseMotionListener
java.lang.Object
   ↳ java.awt.event.MouseAdapter
     ↳ javax.swing.plaf.basic.BasicScrollBarUI.TrackListener

Class Overview

Track mouse drags.

Summary

Fields
protected int currentMouseX
protected int currentMouseY
protected int offset
Protected Constructors
BasicScrollBarUI.TrackListener()
Public Methods
void mouseDragged(MouseEvent e)
Set the models value to the position of the thumb's top of Vertical scrollbar, or the left/right of Horizontal scrollbar in left-to-right/right-to-left scrollbar relative to the origin of the track.
void mouseExited(MouseEvent e)
Invoked when the mouse exits the scrollbar.
void mouseMoved(MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
void mousePressed(MouseEvent e)
If the mouse is pressed above the "thumb" component then reduce the scrollbars value by one page ("page up"), otherwise increase it by one page.
void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.
[Expand]
Inherited Methods
From class java.awt.event.MouseAdapter
From class java.lang.Object
From interface java.awt.event.MouseListener
From interface java.awt.event.MouseMotionListener
From interface java.awt.event.MouseWheelListener

Fields

protected int currentMouseX

protected int currentMouseY

protected int offset

Protected Constructors

protected BasicScrollBarUI.TrackListener ()

Public Methods

public void mouseDragged (MouseEvent e)

Set the models value to the position of the thumb's top of Vertical scrollbar, or the left/right of Horizontal scrollbar in left-to-right/right-to-left scrollbar relative to the origin of the track.

public void mouseExited (MouseEvent e)

Invoked when the mouse exits the scrollbar.

Parameters
e MouseEvent further describing the event

public void mouseMoved (MouseEvent e)

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

public void mousePressed (MouseEvent e)

If the mouse is pressed above the "thumb" component then reduce the scrollbars value by one page ("page up"), otherwise increase it by one page. If there is no thumb then page up if the mouse is in the upper half of the track.

public void mouseReleased (MouseEvent e)

Invoked when a mouse button has been released on a component.