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 BasicSliderUI.TrackListener
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, MouseInputListener
- Enclosing class:
- BasicSliderUI
public class BasicSliderUI.TrackListener
extends MouseInputAdapter
Track mouse movements.
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of .
Method Summary |
void |
Set the models value to the position of the top/left
of the thumb relative to the origin of the track.
|
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 |
|
boolean |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentMouseX
protected transient int currentMouseX
-
currentMouseY
protected transient int currentMouseY
-
offset
protected transient int offset
-
BasicSliderUI.TrackListener
public BasicSliderUI.TrackListener()
-
mouseDragged
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.
- Overrides:
mouseDragged
in class MouseAdapter
- Parameters:
e
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
shouldScroll
public boolean shouldScroll(int direction)
-
- Parameters:
direction
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:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.