anl.aida.client.widget
Class RangeSliderUI.RangeTrackListener

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 anl.aida.client.widget.RangeSliderUI.RangeTrackListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListener
Enclosing class:
RangeSliderUI

public class RangeSliderUI.RangeTrackListener
extends javax.swing.plaf.basic.BasicSliderUI.TrackListener


Field Summary
protected  int currentMouseX
           
protected  int currentMouseY
           
protected  boolean isOther
           
protected  int offset
           
protected  java.awt.Rectangle rect
           
 
Constructor Summary
RangeSliderUI.RangeTrackListener()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
          Set the models value to the position of the top/left of the thumb relative to the origin of the track.
 void mouseMoved(java.awt.event.MouseEvent e)
           
 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
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
 

Field Detail

offset

protected transient int offset

currentMouseX

protected transient int currentMouseX

currentMouseY

protected transient int currentMouseY

rect

protected java.awt.Rectangle rect

isOther

protected boolean isOther
Constructor Detail

RangeSliderUI.RangeTrackListener

public RangeSliderUI.RangeTrackListener()
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

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Set the models value to the position of the top/left of the thumb relative to the origin of the track.

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

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class javax.swing.plaf.basic.BasicSliderUI.TrackListener