javax.swing.plaf.basic
Class BasicSplitPaneDivider.MouseHandler

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.event.MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter 
      extended by javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler
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
Enclosing class:
BasicSplitPaneDivider sample code for javax.swing.plaf.basic.BasicSplitPaneDivider definition code for javax.swing.plaf.basic.BasicSplitPaneDivider

protected class BasicSplitPaneDivider.MouseHandler
extends MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
implements MouseMotionListener sample code for java.awt.event.MouseMotionListener definition code for java.awt.event.MouseMotionListener

MouseHandler is responsible for converting mouse events (released, dragged...) into the appropriate DragController methods.


Constructor Summary
protected BasicSplitPaneDivider.MouseHandler sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.BasicSplitPaneDivider.MouseHandler() definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.BasicSplitPaneDivider.MouseHandler() ()
           
 
Method Summary
 void mouseDragged sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseDragged(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseDragged(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          If dragger is not null it is messaged with continueDrag.
 void mouseEntered sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseEntered(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.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.BasicSplitPaneDivider.MouseHandler.mouseExited(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.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.BasicSplitPaneDivider.MouseHandler.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseMoved(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Resets the cursor based on the orientation.
 void mousePressed sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mousePressed(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mousePressed(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          Starts the dragging session by creating the appropriate instance of DragController.
 void mouseReleased sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseReleased(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseReleased(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
          If dragger is not null it is messaged with completeDrag.
 
Methods inherited from class java.awt.event.MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
mouseClicked sample code for java.awt.event.MouseAdapter.mouseClicked(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseClicked(java.awt.event.MouseEvent)
 
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)
 

Constructor Detail

BasicSplitPaneDivider.MouseHandler sample code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler() definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler()

protected BasicSplitPaneDivider.MouseHandler()
Method Detail

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

public void mousePressed(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Starts the dragging session by creating the appropriate instance of DragController.

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
Overrides:
mousePressed sample code for java.awt.event.MouseAdapter.mousePressed(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mousePressed(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter

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

public void mouseReleased(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
If dragger is not null it is messaged with completeDrag.

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
Overrides:
mouseReleased sample code for java.awt.event.MouseAdapter.mouseReleased(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseReleased(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter

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

public void mouseDragged(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
If dragger is not null it is messaged with continueDrag.

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.BasicSplitPaneDivider.MouseHandler.mouseMoved(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicSplitPaneDivider.MouseHandler.mouseMoved(java.awt.event.MouseEvent)

public void mouseMoved(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Resets the cursor based on the orientation.

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

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

public void mouseEntered(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
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
Overrides:
mouseEntered sample code for java.awt.event.MouseAdapter.mouseEntered(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseEntered(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
Parameters:
e - MouseEvent describing the details of the enter event.
Since:
1.5

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

public void mouseExited(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
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
Overrides:
mouseExited sample code for java.awt.event.MouseAdapter.mouseExited(java.awt.event.MouseEvent) definition code for java.awt.event.MouseAdapter.mouseExited(java.awt.event.MouseEvent) in class MouseAdapter sample code for java.awt.event.MouseAdapter definition code for java.awt.event.MouseAdapter
Parameters:
e - MouseEvent describing the details of the exit event.
Since:
1.5