javax.swing.plaf.basic
Class BasicSplitPaneDivider.MouseHandler

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Enclosing class:
BasicSplitPaneDivider

protected class BasicSplitPaneDivider.MouseHandler
extends MouseAdapter
implements MouseMotionListener

The listener for handling mouse events from both the divider and the containing JSplitPane.

The reason for also handling MouseEvents from the containing JSplitPane is that users should be able to start a drag gesture from inside the JSplitPane, but slightly outisde the divider.


Constructor Summary
protected BasicSplitPaneDivider.MouseHandler()
           
 
Method Summary
 void mouseDragged(MouseEvent e)
          Repeatedly invoked when the user is dragging the mouse cursor while having pressed a mouse button.
 void mouseMoved(MouseEvent e)
          Repeatedly invoked when the user is dragging the mouse cursor without having pressed a mouse button.
 void mousePressed(MouseEvent e)
          This method is called when the mouse is pressed.
 void mouseReleased(MouseEvent e)
          This method is called when the mouse is released.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSplitPaneDivider.MouseHandler

protected BasicSplitPaneDivider.MouseHandler()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
This method is called when the mouse is pressed.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - The MouseEvent.

mouseReleased

public void mouseReleased(MouseEvent e)
This method is called when the mouse is released.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - The MouseEvent.

mouseDragged

public void mouseDragged(MouseEvent e)
Repeatedly invoked when the user is dragging the mouse cursor while having pressed a mouse button.

Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e - The MouseEvent.

mouseMoved

public void mouseMoved(MouseEvent e)
Repeatedly invoked when the user is dragging the mouse cursor without having pressed a mouse button.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e - The MouseEvent.