Package PamView.sliders
Class PamRangeSliderUI.RangeTrackListener
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
javax.swing.plaf.basic.BasicSliderUI.TrackListener
PamView.sliders.PamRangeSliderUI.RangeTrackListener
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
- Enclosing class:
PamRangeSliderUI
Listener to handle mouse movements in the slider track.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the rectangle for the area between the slider thumbs.void
void
void
boolean
shouldScroll
(int direction) Methods inherited from class javax.swing.plaf.basic.BasicSliderUI.TrackListener
mouseMoved
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited
-
Constructor Details
-
RangeTrackListener
public RangeTrackListener()
-
-
Method Details
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classBasicSliderUI.TrackListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classBasicSliderUI.TrackListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classBasicSliderUI.TrackListener
-
shouldScroll
public boolean shouldScroll(int direction) - Overrides:
shouldScroll
in classBasicSliderUI.TrackListener
-
getSliderRangeRect
Get the rectangle for the area between the slider thumbs.- Returns:
- rectangle defined by the area between the two thumbs. height or width of rectangle defined by height or width of thumbs. width or height of rectangle defined by distnace between tweo thumbs.
-