Package org.jcsp.awt
Class MouseEventHandler
- java.lang.Object
-
- org.jcsp.awt.MouseEventHandler
-
- All Implemented Interfaces:
java.awt.event.MouseListener,java.util.EventListener
class MouseEventHandler extends java.lang.Object implements java.awt.event.MouseListener
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelOutputeventThe channel down which action event notifications are sent.
-
Constructor Summary
Constructors Constructor Description MouseEventHandler(ChannelOutput event)constructs a new MouseEventHandler with the specified output channel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseClicked(java.awt.event.MouseEvent e)Assumes the event channel is being serviced (eg by an overwriting channel).voidmouseEntered(java.awt.event.MouseEvent e)Assumes the event channel is being serviced (eg by an overwriting channel).voidmouseExited(java.awt.event.MouseEvent e)Assumes the event channel is being serviced (eg by an overwriting channel).voidmousePressed(java.awt.event.MouseEvent e)Assumes the event channel is being serviced (eg by an overwriting channel).voidmouseReleased(java.awt.event.MouseEvent e)Assumes the event channel is being serviced (eg by an overwriting channel).
-
-
-
Field Detail
-
event
private ChannelOutput event
The channel down which action event notifications are sent.
-
-
Constructor Detail
-
MouseEventHandler
public MouseEventHandler(ChannelOutput event)
constructs a new MouseEventHandler with the specified output channel- Parameters:
event- the Channel to which to send the event notification
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Parameters:
e- The parameters associated with this event
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Parameters:
e- The parameters associated with this event
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Parameters:
e- The parameters associated with this event
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener- Parameters:
e- The parameters associated with this event
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener- Parameters:
e- The parameters associated with this event
-
-