Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
protected class: BasicScrollBarUI.TrackListener [javadoc | source]

All Implemented Interfaces:
    MouseMotionListener, MouseListener, MouseWheelListener

Track mouse drags.
Field Summary
protected transient  int offset     
protected transient  int currentMouseX     
protected transient  int currentMouseY     
Method from javax.swing.plaf.basic.BasicScrollBarUI$TrackListener Summary:
mouseDragged,   mouseExited,   mouseMoved,   mousePressed,   mouseReleased
Methods from java.awt.event.MouseAdapter:
mouseClicked,   mouseDragged,   mouseEntered,   mouseExited,   mouseMoved,   mousePressed,   mouseReleased,   mouseWheelMoved
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicScrollBarUI$TrackListener Detail:
 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.
 public  void mouseMoved(MouseEvent e) 
 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)