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.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String LICENSE
           
static java.lang.String REVISION
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

LICENSE

public static final java.lang.String LICENSE
See Also:
Constant Field Values

REVISION

public static final java.lang.String REVISION
See Also:
Constant Field Values
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.