net.sf.freecol.client.gui
Class CanvasMapEditorMouseListener

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

public final class CanvasMapEditorMouseListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

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


Constructor Summary
CanvasMapEditorMouseListener(Canvas canvas, GUI g)
          The constructor to use.
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when a mouse button was clicked.
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when the mouse has been dragged.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters the component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits the component.
 void mouseMoved(java.awt.event.MouseEvent e)
          Invoked when the mouse has been moved.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button was pressed.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button was released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanvasMapEditorMouseListener

public CanvasMapEditorMouseListener(Canvas canvas,
                                    GUI g)
The constructor to use.

Parameters:
canvas - The component this object gets created for.
g - The GUI that holds information such as screen resolution.
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when a mouse button was clicked.

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

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters the component.

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

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits the component.

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

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button was pressed.

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

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button was released.

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

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.