Package jmri.util.swing
Class JmriMouseAdapter
- java.lang.Object
-
- jmri.util.swing.JmriMouseAdapter
-
- All Implemented Interfaces:
java.util.EventListener,JmriMouseListener
- Direct Known Subclasses:
BeanTableDataModel.PopupListener,BeanTableDataModel.TableHeaderListener,DispatcherFrame.TableHeaderListener,IconItemPanel.IconListener
public class JmriMouseAdapter extends java.lang.Object implements JmriMouseListener
Replacement for MouseAdaptor. This class is used to replace MouseEvent with JmriMouseEvent.
-
-
Constructor Summary
Constructors Constructor Description JmriMouseAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseClicked(JmriMouseEvent e)Invoked when the mouse button has been clicked (pressed and released) on a component.voidmouseEntered(JmriMouseEvent e)Invoked when the mouse enters a component.voidmouseExited(JmriMouseEvent e)Invoked when the mouse exits a component.voidmousePressed(JmriMouseEvent e)Invoked when a mouse button has been pressed on a component.voidmouseReleased(JmriMouseEvent e)Invoked when a mouse button has been released on a component.
-
-
-
Constructor Detail
-
JmriMouseAdapter
public JmriMouseAdapter()
-
-
Method Detail
-
mouseClicked
public void mouseClicked(JmriMouseEvent e)
Description copied from interface:JmriMouseListenerInvoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
mouseClickedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mousePressed
public void mousePressed(JmriMouseEvent e)
Description copied from interface:JmriMouseListenerInvoked when a mouse button has been pressed on a component.- Specified by:
mousePressedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseReleased
public void mouseReleased(JmriMouseEvent e)
Description copied from interface:JmriMouseListenerInvoked when a mouse button has been released on a component.- Specified by:
mouseReleasedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseEntered
public void mouseEntered(JmriMouseEvent e)
Description copied from interface:JmriMouseListenerInvoked when the mouse enters a component.- Specified by:
mouseEnteredin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
mouseExited
public void mouseExited(JmriMouseEvent e)
Description copied from interface:JmriMouseListenerInvoked when the mouse exits a component.- Specified by:
mouseExitedin interfaceJmriMouseListener- Parameters:
e- the event to be processed
-
-