public class BasicToolBarUI.DockingListener extends Object implements MouseInputListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
isDragging
Whether the JToolBar is being dragged.
|
protected Point |
origin
The origin point.
|
protected JToolBar |
toolBar
The JToolBar being dragged.
|
Constructor and Description |
---|
BasicToolBarUI.DockingListener(JToolBar t)
Creates a new DockingListener object.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(MouseEvent e)
This method is called when the mouse is clicked.
|
void |
mouseDragged(MouseEvent e)
This method is called when the mouse is dragged.
|
void |
mouseEntered(MouseEvent e)
This method is called when the mouse enters the JToolBar.
|
void |
mouseExited(MouseEvent e)
This method is called when the mouse exits the JToolBar.
|
void |
mouseMoved(MouseEvent e)
This method is called when the mouse is moved in the JToolBar.
|
void |
mousePressed(MouseEvent e)
This method is called when the mouse is pressed in the JToolBar.
|
void |
mouseReleased(MouseEvent e)
This method is called when the mouse is released from the JToolBar.
|
protected boolean isDragging
protected Point origin
public BasicToolBarUI.DockingListener(JToolBar t)
t
- The JToolBar this DockingListener is being used for.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- The MouseEvent.public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- The MouseEvent.public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- The MouseEvent.public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- The MouseEvent.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- The MouseEvent.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- The MouseEvent.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- The MouseEvent.