protected class BasicSplitPaneDivider.MouseHandler extends MouseAdapter implements MouseMotionListener
MouseHandler is responsible for converting mouse events (released, dragged...) into the appropriate DragController methods.
protected MouseHandler()
public void mousePressed(MouseEvent e)
Starts the dragging session by creating the appropriate instance of DragController.
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseReleased(MouseEvent e)
If dragger is not null it is messaged with completeDrag.
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
public void mouseDragged(MouseEvent e)
If dragger is not null it is messaged with continueDrag.
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseAdapter
public void mouseMoved(MouseEvent e)
Resets the cursor based on the orientation.
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void mouseEntered(MouseEvent e)
Invoked when the mouse enters a component.
mouseEntered
in interface MouseListener
mouseEntered
in class MouseAdapter
e
- MouseEvent describing the details of the enter event.public void mouseExited(MouseEvent e)
Invoked when the mouse exits a component.
mouseExited
in interface MouseListener
mouseExited
in class MouseAdapter
e
- MouseEvent describing the details of the exit event.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.