public class BasicRangeSliderUI.RangeSliderTrackListener extends BasicSliderUI.TrackListener
currentMouseX, currentMouseY, offset
Constructor and Description |
---|
RangeSliderTrackListener() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
void |
mouseReleased(MouseEvent e) |
boolean |
shouldScroll(int direction,
Rectangle r) |
mouseMoved, shouldScroll
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class BasicSliderUI.TrackListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class BasicSliderUI.TrackListener
public boolean shouldScroll(int direction, Rectangle r)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class BasicSliderUI.TrackListener
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.