org.argouml.uml.ui
Class UMLLinkMouseListener
java.lang.Object
org.argouml.uml.ui.UMLLinkMouseListener
- All Implemented Interfaces:
- EventListener, MouseListener
- public class UMLLinkMouseListener
- extends Object
- implements MouseListener
A mouselistener that implements behaviour
to navigate to a selected modelelement
on double click of the left mousebutton
for a JList.
- Since:
- Juli 9, 2004
Field Summary |
private int |
numberOfMouseClicks
The total amount of mouseclicks the user has to do,
to go to the selected element. |
private JList |
owner
The graphical object for which this mouselistener is registrated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
private JList owner
- The graphical object for which this mouselistener is registrated.
numberOfMouseClicks
private int numberOfMouseClicks
- The total amount of mouseclicks the user has to do,
to go to the selected element.
UMLLinkMouseListener
public UMLLinkMouseListener(JList theOwner)
- The constructor.
- Parameters:
theOwner
- the graphical object for which
this mouselistener is registered
UMLLinkMouseListener
private UMLLinkMouseListener(JList theOwner,
int numberOfmouseClicks)
- The constructor.
- Parameters:
theOwner
- the graphical object for which
this mouselistener is registerednumberOfmouseClicks
- the total amount of mouseclicks the user
has to do, to go to the selected element
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interface MouseListener
- See Also:
MouseListener.mouseClicked(
java.awt.event.MouseEvent)
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interface MouseListener
- See Also:
MouseListener.mouseEntered(java.awt.event.MouseEvent)
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
- See Also:
MouseListener.mouseExited(java.awt.event.MouseEvent)
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- See Also:
MouseListener.mousePressed(java.awt.event.MouseEvent)
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
- See Also:
MouseListener.mouseReleased(
java.awt.event.MouseEvent)