- java.lang.Object
-
- javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler
-
- All Implemented Interfaces:
-
MouseWheelListener
,EventListener
- Enclosing class:
- BasicScrollPaneUI
protected class BasicScrollPaneUI.MouseWheelHandler extends Object implements MouseWheelListener
MouseWheelHandler是一个实现MouseWheelListener接口的内部类。 MouseWheelHandler通过相应地滚动JScrollPane来响应MouseWheelEvents。 如果滚动窗格的isWheelScrollingEnabled
方法返回false,则不会出现滚动。
-
-
构造方法摘要
构造方法 Modifier Constructor 描述 protected
MouseWheelHandler()
-
-
-
方法详细信息
-
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
当鼠标滚轮在JScrollPane上旋转时调用。- Specified by:
-
mouseWheelMoved
在接口MouseWheelListener
- 参数
-
e
- 要处理的MouseWheelEvent - 从以下版本开始:
- 1.4
- 另请参见:
-
MouseWheelEvent
-
-