Package org.jcsp.awt

Class MouseMotionEventHandler

java.lang.Object
org.jcsp.awt.MouseMotionEventHandler
All Implemented Interfaces:
MouseMotionListener, EventListener

class MouseMotionEventHandler extends Object implements MouseMotionListener
  • Field Details

    • event

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

    • MouseMotionEventHandler

      public MouseMotionEventHandler(ChannelOutput event)
      constructs a new MouseMotionEventHandler with the specified output Channel.
      Parameters:
      event - The Channel to send the event notification down
  • Method Details

    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Invoked when the Component the event handler is listening to has a mouse dragged. Notifies the event process that a MouseEvent has occurred by sending the MouseEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      mouseDragged in interface MouseMotionListener
      Parameters:
      e - The parameters associated with this event
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Invoked when the Component the event handler is listening to has a mouse moved. Notifies the event process that a MouseEvent has occurred by sending the MouseEvent Object. Some notifications will be lost so there are no guarantees that all events generated will be processed.
      Specified by:
      mouseMoved in interface MouseMotionListener
      Parameters:
      e - The parameters associated with this event