JHotDraw 7.4.1

org.jhotdraw.color
Class ColorSliderUI.QuaquaTrackListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by javax.swing.plaf.basic.BasicSliderUI.TrackListener
              extended by org.jhotdraw.color.ColorSliderUI.QuaquaTrackListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListener
Enclosing class:
ColorSliderUI

public class ColorSliderUI.QuaquaTrackListener
extends javax.swing.plaf.basic.BasicSliderUI.TrackListener

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 .


Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSliderUI.TrackListener
currentMouseX, currentMouseY, offset
 
Constructor Summary
ColorSliderUI.QuaquaTrackListener()
           
 
Method Summary
 void mousePressed(java.awt.event.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.
 
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI.TrackListener
mouseDragged, mouseMoved, mouseReleased, shouldScroll
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, 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
 

Constructor Detail

ColorSliderUI.QuaquaTrackListener

public ColorSliderUI.QuaquaTrackListener()
Method Detail

mousePressed

public void mousePressed(java.awt.event.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. If there is no thumb then page up if the mouse is in the upper half of the track.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class javax.swing.plaf.basic.BasicSliderUI.TrackListener

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.