Package util.mthumbslider
Class MThumbSliderAdditionalUI.TrackListener
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- javax.swing.event.MouseInputAdapter
-
- util.mthumbslider.MThumbSliderAdditionalUI.TrackListener
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener,MouseInputListener
- Enclosing class:
- MThumbSliderAdditionalUI
public class MThumbSliderAdditionalUI.TrackListener extends MouseInputAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected intadjustingThumbIndexprotected RectangleadjustingThumbRectprotected intcurrentMouseXprotected intcurrentMouseYprotected intoffsetprotected MThumbSlidersliderprotected RectangletrackRect
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseDragged(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)booleanshouldScroll(int direction)-
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseMoved, 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
-
Methods inherited from interface java.awt.event.MouseMotionListener
mouseMoved
-
-
-
-
Field Detail
-
offset
protected transient int offset
-
currentMouseX
protected transient int currentMouseX
-
currentMouseY
protected transient int currentMouseY
-
adjustingThumbRect
protected Rectangle adjustingThumbRect
-
adjustingThumbIndex
protected int adjustingThumbIndex
-
slider
protected MThumbSlider slider
-
trackRect
protected Rectangle trackRect
-
-
Method Detail
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMouseAdapter
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMouseAdapter
-
shouldScroll
public boolean shouldScroll(int direction)
-
-