javax.swing.plaf.basic
Class BasicTreeUI.MouseInputHandler

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler
All Implemented Interfaces:
MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener , MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , MouseInputListener sample code for javax.swing.event.MouseInputListener definition code for javax.swing.event.MouseInputListener
Enclosing class:
BasicTreeUI sample code for javax.swing.plaf.basic.BasicTreeUI definition code for javax.swing.plaf.basic.BasicTreeUI

public class BasicTreeUI.MouseInputHandler
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements MouseInputListener sample code for javax.swing.event.MouseInputListener definition code for javax.swing.event.MouseInputListener

MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with. It is assumed all the events are currently target at source.


Field Summary
protected  Component sample code for java.awt.Component definition code for java.awt.Component destination sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.destination definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.destination
          Destination that receives all events.
protected  Component sample code for java.awt.Component definition code for java.awt.Component source sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.source definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.source
          Source that events are coming from.
 
Constructor Summary
BasicTreeUI.MouseInputHandler sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.BasicTreeUI.MouseInputHandler(java.awt.Component, java.awt.Component, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.BasicTreeUI.MouseInputHandler(java.awt.Component, java.awt.Component, java.awt.event.MouseEvent) (Component sample code for java.awt.Component definition code for java.awt.Component  source, Component sample code for java.awt.Component definition code for java.awt.Component  destination, MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
           
 
Method Summary
 void mouseClicked sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseClicked(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseClicked(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseDragged sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseDragged(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseDragged(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseEntered(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseEntered(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse enters a component.
 void mouseExited sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseExited(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseExited(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse exits a component.
 void mouseMoved sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseMoved(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
 void mousePressed sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mousePressed(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseReleased(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Invoked when a mouse button has been released on a component.
protected  void removeFromSource sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.removeFromSource() definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.removeFromSource() ()
           
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

source sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.source

protected Component sample code for java.awt.Component definition code for java.awt.Component  source
Source that events are coming from.


destination sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.destination

protected Component sample code for java.awt.Component definition code for java.awt.Component  destination
Destination that receives all events.

Constructor Detail

BasicTreeUI.MouseInputHandler sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler(java.awt.Component, java.awt.Component, java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler(java.awt.Component, java.awt.Component, java.awt.event.MouseEvent)

public BasicTreeUI.MouseInputHandler(Component sample code for java.awt.Component definition code for java.awt.Component  source,
                                     Component sample code for java.awt.Component definition code for java.awt.Component  destination,
                                     MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  event)
Method Detail

mouseClicked sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseClicked(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseClicked(java.awt.event.MouseEvent)

public void mouseClicked(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent)
Invoked when the mouse button has been clicked (pressed and released) on a component.

Specified by:
mouseClicked sample code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseClicked(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mousePressed sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mousePressed(java.awt.event.MouseEvent)

public void mousePressed(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent)
Invoked when a mouse button has been pressed on a component.

Specified by:
mousePressed sample code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mousePressed(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseReleased sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseReleased(java.awt.event.MouseEvent)

public void mouseReleased(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased sample code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseReleased(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseEntered sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseEntered(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseEntered(java.awt.event.MouseEvent)

public void mouseEntered(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent)
Invoked when the mouse enters a component.

Specified by:
mouseEntered sample code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseEntered(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseExited sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseExited(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseExited(java.awt.event.MouseEvent)

public void mouseExited(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseListener sample code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent)
Invoked when the mouse exits a component.

Specified by:
mouseExited sample code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseListener.mouseExited(java.awt.event.MouseEvent) in interface MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener

mouseDragged sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseDragged(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseDragged(java.awt.event.MouseEvent)

public void mouseDragged(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseMotionListener sample code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
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).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Specified by:
mouseDragged sample code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseDragged(java.awt.event.MouseEvent) in interface MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener

mouseMoved sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.mouseMoved(java.awt.event.MouseEvent)

public void mouseMoved(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Description copied from interface: MouseMotionListener sample code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Specified by:
mouseMoved sample code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) definition code for java.awt.event.MouseMotionListener.mouseMoved(java.awt.event.MouseEvent) in interface MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener

removeFromSource sample code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.removeFromSource() definition code for javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler.removeFromSource()

protected void removeFromSource()