Package org.jcsp.awt

Class MouseEventHandler

java.lang.Object
org.jcsp.awt.MouseEventHandler
All Implemented Interfaces:
MouseListener, EventListener

class MouseEventHandler extends Object implements MouseListener
  • Field Details

    • event

      private ChannelOutput event
      The channel down which action event notifications are sent.
  • Constructor Details

    • 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 Details

    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Assumes the event channel is being serviced (eg by an overwriting channel).
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      e - The parameters associated with this event
    • mousePressed

      public void mousePressed(MouseEvent e)
      Assumes the event channel is being serviced (eg by an overwriting channel).
      Specified by:
      mousePressed in interface MouseListener
      Parameters:
      e - The parameters associated with this event
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Assumes the event channel is being serviced (eg by an overwriting channel).
      Specified by:
      mouseReleased in interface MouseListener
      Parameters:
      e - The parameters associated with this event
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Assumes the event channel is being serviced (eg by an overwriting channel).
      Specified by:
      mouseEntered in interface MouseListener
      Parameters:
      e - The parameters associated with this event
    • mouseExited

      public void mouseExited(MouseEvent e)
      Assumes the event channel is being serviced (eg by an overwriting channel).
      Specified by:
      mouseExited in interface MouseListener
      Parameters:
      e - The parameters associated with this event