Class ColorSliderUI.QuaquaTrackListener
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
javax.swing.plaf.basic.BasicSliderUI.TrackListener
org.pushingpixels.radiance.theming.internal.contrib.randelshofer.quaqua.colorchooser.ColorSliderUI.QuaquaTrackListener
- All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
- Enclosing class:
ColorSliderUI
Track mouse movements.
This inner class is marked "public" due to a compiler bug. This
class should be treated as a "protected" inner class.
Instantiate it only within subclasses of
- Version:
- 1.0.3 2005-09-11 Tweaked layout and drawing code.
1.0.2 2005-08-28 Color track must always be regenerated if the snapToTicks property changes.
1.0.1 2005-04-18 Fixed an undesired shift of the track on the x-axis.
1.0 29 March 2005 Created.
-
Field Summary
Fields inherited from class BasicSliderUI.TrackListener
currentMouseX, currentMouseY, offset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIf the mouse is pressed above the "thumb" component then reduce the scrollbars value by one page ("page up"), otherwise increase it by one page.Methods inherited from class BasicSliderUI.TrackListener
mouseDragged, mouseMoved, mouseReleased, shouldScrollMethods inherited from class MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseWheelMovedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MouseListener
mouseClicked, mouseEntered, mouseExited
-
Constructor Details
-
QuaquaTrackListener
public QuaquaTrackListener()
-
-
Method Details
-
mousePressed
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:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicSliderUI.TrackListener
-