Class CanvasMouseMotionListener

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

    public final class CanvasMouseMotionListener
    extends AbstractCanvasListener
    implements java.awt.event.MouseMotionListener
    Listens to the mouse being moved at the level of the Canvas.
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • CanvasMouseMotionListener

        public CanvasMouseMotionListener​(FreeColClient freeColClient,
                                         Canvas canvas)
        Creates a new listener for mouse movement.
        Parameters:
        freeColClient - The FreeColClient for the game.
        canvas - The Canvas to listen on.
    • Method Detail

      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent me)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent me)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener