anl.aida.client.widget
Class RangeSliderUI.RangeTrackListener
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
javax.swing.plaf.basic.BasicSliderUI.TrackListener
anl.aida.client.widget.RangeSliderUI.RangeTrackListener
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListener
- Enclosing class:
- RangeSliderUI
public class RangeSliderUI.RangeTrackListener
- extends javax.swing.plaf.basic.BasicSliderUI.TrackListener
Method Summary |
void |
mouseDragged(java.awt.event.MouseEvent e)
Set the models value to the position of the top/left
of the thumb relative to the origin of the track. |
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.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. |
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI.TrackListener |
mouseReleased, shouldScroll |
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
mouseClicked, mouseEntered, mouseExited |
offset
protected transient int offset
currentMouseX
protected transient int currentMouseX
currentMouseY
protected transient int currentMouseY
rect
protected java.awt.Rectangle rect
isOther
protected boolean isOther
RangeSliderUI.RangeTrackListener
public RangeSliderUI.RangeTrackListener()
mousePressed
public void mousePressed(java.awt.event.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.
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
- Overrides:
mousePressed
in class javax.swing.plaf.basic.BasicSliderUI.TrackListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Set the models value to the position of the top/left
of the thumb relative to the origin of the track.
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
- Overrides:
mouseDragged
in class javax.swing.plaf.basic.BasicSliderUI.TrackListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
- Overrides:
mouseMoved
in class javax.swing.plaf.basic.BasicSliderUI.TrackListener