javax.swing.plaf.basic
Class BasicScrollPaneUI.MouseWheelHandler

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler
All Implemented Interfaces:
MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener
Enclosing class:
BasicScrollPaneUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI definition code for javax.swing.plaf.basic.BasicScrollPaneUI

protected class BasicScrollPaneUI.MouseWheelHandler
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener

MouseWheelHandler is an inner class which implements the MouseWheelListener interface. MouseWheelHandler responds to MouseWheelEvents by scrolling the JScrollPane appropriately. If the scroll pane's isWheelScrollingEnabled method returns false, no scrolling occurs.

Since:
1.4
See Also:
JScrollPane.isWheelScrollingEnabled() sample code for javax.swing.JScrollPane.isWheelScrollingEnabled() definition code for javax.swing.JScrollPane.isWheelScrollingEnabled() , BasicScrollPaneUI.createMouseWheelListener() sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener() , MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener , MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent

Constructor Summary
protected BasicScrollPaneUI.MouseWheelHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.BasicScrollPaneUI.MouseWheelHandler() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.BasicScrollPaneUI.MouseWheelHandler() ()
           
 
Method Summary
 void mouseWheelMoved sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.mouseWheelMoved(java.awt.event.MouseWheelEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.mouseWheelMoved(java.awt.event.MouseWheelEvent) (MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent  e)
          Called when the mouse wheel is rotated while over a JScrollPane.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BasicScrollPaneUI.MouseWheelHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler()

protected BasicScrollPaneUI.MouseWheelHandler()
Method Detail

mouseWheelMoved sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.mouseWheelMoved(java.awt.event.MouseWheelEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler.mouseWheelMoved(java.awt.event.MouseWheelEvent)

public void mouseWheelMoved(MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent  e)
Called when the mouse wheel is rotated while over a JScrollPane.

Specified by:
mouseWheelMoved sample code for java.awt.event.MouseWheelListener.mouseWheelMoved(java.awt.event.MouseWheelEvent) definition code for java.awt.event.MouseWheelListener.mouseWheelMoved(java.awt.event.MouseWheelEvent) in interface MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener
Parameters:
e - MouseWheelEvent to be handled
Since:
1.4
See Also:
MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent