javax.swing.plaf.basic

Class BasicTreeUI.MouseHandler

public class BasicTreeUI.MouseHandler extends MouseAdapter implements MouseMotionListener

MouseListener is responsible for updating the selection based on mouse events.
Constructor Summary
MouseHandler()
Constructor
Method Summary
voidmouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
voidmouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down).
voidmousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.
voidmouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

Constructor Detail

MouseHandler

public MouseHandler()
Constructor

Method Detail

mouseDragged

public void mouseDragged(MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Parameters: e is the mouse event that occured

mouseMoved

public void mouseMoved(MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down).

Parameters: e the mouse event that occured

mousePressed

public void mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component.

Parameters: e is the mouse event that occured

mouseReleased

public void mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component.

Parameters: e is the mouse event that occured