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

All Implemented Interfaces:
    MouseInputListener, MouseListener, MouseMotionListener, MouseWheelListener

Track mouse movements. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of .
Field Summary
protected transient  int offset     
protected transient  int currentMouseX     
protected transient  int currentMouseY     
Method from javax.swing.plaf.basic.BasicSliderUI$TrackListener Summary:
mouseDragged,   mouseMoved,   mousePressed,   mouseReleased,   shouldScroll
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.BasicSliderUI$TrackListener Detail:
 public  void mouseDragged(MouseEvent e) 
    Set the models value to the position of the top/left of the thumb relative to the origin of the track.
 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) 
 public boolean shouldScroll(int direction)