Class XTraScrollBarUI.MyTrackListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Enclosing class:
    XTraScrollBarUI

    public class XTraScrollBarUI.MyTrackListener
    extends java.awt.event.MouseAdapter
    Track mouse drags.
    Author:
    fred
    • Constructor Summary

      Constructors 
      Constructor Description
      MyTrackListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseClicked, mouseEntered, mouseWheelMoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyTrackListener

        public MyTrackListener()
    • Method Detail

      • 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
        Parameters:
        e - Description of Parameter