public class BasicTreeUI.MouseInputHandler extends java.lang.Object implements javax.swing.event.MouseInputListener
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Component |
destination
Destination that receives all events.
|
protected java.awt.Component |
source
Source that events are coming from
|
| Constructor and Description |
|---|
BasicTreeUI.MouseInputHandler(java.awt.Component source,
java.awt.Component destination,
java.awt.event.MouseEvent e)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on
a component.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no
buttons have been pushed.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
protected void |
removeFromSource()
Removes event from the source
|
protected java.awt.Component source
protected java.awt.Component destination
public BasicTreeUI.MouseInputHandler(java.awt.Component source, java.awt.Component destination, java.awt.event.MouseEvent e)
source - that events are coming fromdestination - that receives all eventse - is the event receivedpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - mouse event that occuredpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - mouse event that occuredpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - mouse event that occuredpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - mouse event that occuredpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - mouse event that occuredpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - mouse event that occuredpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - mouse event that occuredprotected void removeFromSource()