net.sf.freecol.client.gui
Class CanvasMouseMotionListener

java.lang.Object
  extended by net.sf.freecol.client.gui.CanvasMouseMotionListener
All Implemented Interfaces:
java.awt.event.MouseMotionListener, java.util.EventListener

public final class CanvasMouseMotionListener
extends java.lang.Object
implements java.awt.event.MouseMotionListener

Listens to the mouse being moved at the level of the Canvas.


Constructor Summary
CanvasMouseMotionListener(Canvas canvas, GUI g, Map m)
          The constructor to use.
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when the mouse has been dragged.
 void mouseMoved(java.awt.event.MouseEvent e)
          Invoked when the mouse has been moved.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanvasMouseMotionListener

public CanvasMouseMotionListener(Canvas canvas,
                                 GUI g,
                                 Map m)
The constructor to use.

Parameters:
canvas - The component this object gets created for.
g - The GUI that holds information such as screen resolution.
m - The Map that is currently being drawn on the Canvas (by the GUI).
Method Detail

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse has been moved.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
e - The MouseEvent that holds all the information.

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when the mouse has been dragged.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
e - The MouseEvent that holds all the information.