|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.gui.CanvasMouseMotionListener
public final class CanvasMouseMotionListener
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 |
---|
public CanvasMouseMotionListener(Canvas canvas, GUI g, Map m)
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 |
---|
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- The MouseEvent that holds all the information.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- The MouseEvent that holds all the information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |