Package org.jcsp.awt

Class MouseMotionEventHandler

  • All Implemented Interfaces:
    java.awt.event.MouseMotionListener, java.util.EventListener

    class MouseMotionEventHandler
    extends java.lang.Object
    implements java.awt.event.MouseMotionListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ChannelOutput event
      The Channel action event notifications are sent down.
    • Constructor Summary

      Constructors 
      Constructor Description
      MouseMotionEventHandler​(ChannelOutput event)
      constructs a new MouseMotionEventHandler with the specified output Channel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseDragged​(java.awt.event.MouseEvent e)
      Invoked when the Component the event handler is listening to has a mouse dragged.
      void mouseMoved​(java.awt.event.MouseEvent e)
      Invoked when the Component the event handler is listening to has a mouse moved.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • event

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

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

      • mouseDragged

        public void mouseDragged​(java.awt.event.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 java.awt.event.MouseMotionListener
        Parameters:
        e - The parameters associated with this event
      • mouseMoved

        public void mouseMoved​(java.awt.event.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 java.awt.event.MouseMotionListener
        Parameters:
        e - The parameters associated with this event