javax.swing.plaf.basic

Class BasicSplitPaneDivider.MouseHandler

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.

Method Summary
voidmouseDragged(MouseEvent e)
Repeatedly invoked when the user is dragging the mouse cursor while having pressed a mouse button.
voidmouseMoved(MouseEvent e)
Repeatedly invoked when the user is dragging the mouse cursor without having pressed a mouse button.
voidmousePressed(MouseEvent e)
This method is called when the mouse is pressed.
voidmouseReleased(MouseEvent e)
This method is called when the mouse is released.

Method Detail

mouseDragged

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

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.

Parameters: e The MouseEvent.

mousePressed

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

Parameters: e The MouseEvent.

mouseReleased

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

Parameters: e The MouseEvent.