jsky.util.gui
Class BasicRangeSliderUI.RangeSliderTrackListener
java.lang.Object
javax.swing.event.MouseInputAdapter
javax.swing.plaf.basic.BasicSliderUI.TrackListener
jsky.util.gui.BasicRangeSliderUI.RangeSliderTrackListener
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener, MouseInputListener
- Enclosing class:
- BasicRangeSliderUI
public class BasicRangeSliderUI.RangeSliderTrackListener
- extends BasicSliderUI.TrackListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicRangeSliderUI.RangeSliderTrackListener
public BasicRangeSliderUI.RangeSliderTrackListener()
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
- Overrides:
mouseReleased
in class BasicSliderUI.TrackListener
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.
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class BasicSliderUI.TrackListener
shouldScroll
public boolean shouldScroll(int direction,
Rectangle r)
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.
- Specified by:
mouseDragged
in interface MouseMotionListener
- Overrides:
mouseDragged
in class BasicSliderUI.TrackListener
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.