javax.swing.plaf.basic
protected class BasicSplitPaneDivider.MouseHandler extends MouseAdapter implements MouseMotionListener
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.
Modifier | Constructor and Description |
---|---|
protected |
BasicSplitPaneDivider.MouseHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
mouseClicked, mouseEntered, mouseExited
protected BasicSplitPaneDivider.MouseHandler()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
e
- The MouseEvent.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
e
- The MouseEvent.public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- The MouseEvent.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- The MouseEvent.