public class IlvDoubleSliderUI.TrackListener2 extends BasicSliderUI.TrackListener implements MouseInputListener
TrackListener2
class basically tracks down any mouse movements
on the double slider.currentMouseX, currentMouseY, offset
Constructor and Description |
---|
TrackListener2(JSlider slider) |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
Handler for MouseDrag events.
|
void |
mouseMoved(MouseEvent e)
Handler for mouse move event.
|
void |
mousePressed(MouseEvent e)
Handler for Mouse Pressed events.
|
void |
mouseReleased(MouseEvent e)
Handler for mouse released event.
|
boolean |
shouldScroll(int direction)
This method returns true if the slider shouldScroll depending on the
direction.
|
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
public TrackListener2(JSlider slider)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class BasicSliderUI.TrackListener
e
- MouseEvent.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class BasicSliderUI.TrackListener
e
- MouseEvent.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class BasicSliderUI.TrackListener
e
- MouseEvent.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class BasicSliderUI.TrackListener
e
- Mouse Event.public boolean shouldScroll(int direction)
shouldScroll
in class BasicSliderUI.TrackListener
direction
- Direction in which the slider scrolls.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.