Package org.jcsp.awt
Class MouseEventHandler
java.lang.Object
org.jcsp.awt.MouseEventHandler
- All Implemented Interfaces:
MouseListener
,EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChannelOutput
The channel down which action event notifications are sent. -
Constructor Summary
ConstructorsConstructorDescriptionMouseEventHandler
(ChannelOutput event) constructs a new MouseEventHandler with the specified output channel -
Method Summary
Modifier and TypeMethodDescriptionvoid
Assumes the event channel is being serviced (eg by an overwriting channel).void
Assumes the event channel is being serviced (eg by an overwriting channel).void
Assumes the event channel is being serviced (eg by an overwriting channel).void
Assumes the event channel is being serviced (eg by an overwriting channel).void
Assumes the event channel is being serviced (eg by an overwriting channel).
-
Field Details
-
event
The channel down which action event notifications are sent.
-
-
Constructor Details
-
MouseEventHandler
constructs a new MouseEventHandler with the specified output channel- Parameters:
event
- the Channel to which to send the event notification
-
-
Method Details
-
mouseClicked
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseClicked
in interfaceMouseListener
- Parameters:
e
- The parameters associated with this event
-
mousePressed
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mousePressed
in interfaceMouseListener
- Parameters:
e
- The parameters associated with this event
-
mouseReleased
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseReleased
in interfaceMouseListener
- Parameters:
e
- The parameters associated with this event
-
mouseEntered
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseEntered
in interfaceMouseListener
- Parameters:
e
- The parameters associated with this event
-
mouseExited
Assumes the event channel is being serviced (eg by an overwriting channel).- Specified by:
mouseExited
in interfaceMouseListener
- Parameters:
e
- The parameters associated with this event
-