This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicScrollBarUI.TrackListener

java.lang.Object extended by java.awt.event.MouseAdapter extended by javax.swing.plaf.basic.BasicScrollBarUI.TrackListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener
Enclosing class:
BasicScrollBarUI

protected class BasicScrollBarUI.TrackListener
extends MouseAdapter
implements MouseMotionListener

Track mouse drags.


Field Summary
protected transient int currentMouseX
          
protected transient int currentMouseY
          
protected transient int offset
          
 
Constructor Summary
protected

          
 
Method Summary
 void

          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

          Invoked when the mouse exits the scrollbar.
 void

          
 void

          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

          
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentMouseX

protected transient int currentMouseX

currentMouseY

protected transient int currentMouseY

offset

protected transient int offset
Constructor Detail

BasicScrollBarUI.TrackListener

protected BasicScrollBarUI.TrackListener()
Method Detail

mouseDragged

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.

Overrides:
mouseDragged in class MouseAdapter
Parameters:
e

mouseExited

public void mouseExited(MouseEvent e)
Invoked when the mouse exits the scrollbar.

Overrides:
mouseExited in class MouseAdapter
Parameters:
e - MouseEvent further describing the event

mouseMoved

public void mouseMoved(MouseEvent e)
Overrides:
mouseMoved in class MouseAdapter
Parameters:
e

mousePressed

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.

Overrides:
mousePressed in class MouseAdapter
Parameters:
e

mouseReleased

public void mouseReleased(MouseEvent e)
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.