Package net.sf.freecol.client.gui
Class CanvasMouseMotionListener
- java.lang.Object
-
- net.sf.freecol.client.control.FreeColClientHolder
-
- net.sf.freecol.client.gui.AbstractCanvasListener
-
- net.sf.freecol.client.gui.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 Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
-
Fields inherited from class net.sf.freecol.client.gui.AbstractCanvasListener
AUTO_SCROLL_SPACE
-
-
Constructor Summary
Constructors Constructor Description CanvasMouseMotionListener(FreeColClient freeColClient, Canvas canvas)
Creates a new listener for mouse movement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseDragged(java.awt.event.MouseEvent me)
void
mouseMoved(java.awt.event.MouseEvent me)
-
Methods inherited from class net.sf.freecol.client.gui.AbstractCanvasListener
performAutoScrollIfActive, performDragScrollIfActive, stopScrollIfScrollIsActive
-
Methods inherited from class net.sf.freecol.client.control.FreeColClientHolder
askServer, currentPlayerIsMyPlayer, getClientOptions, getConnectController, getFreeColClient, getFreeColServer, getGame, getGUI, getMap, getMyPlayer, getSpecification, igc, pgc
-
-
-
-
Constructor Detail
-
CanvasMouseMotionListener
public CanvasMouseMotionListener(FreeColClient freeColClient, Canvas canvas)
Creates a new listener for mouse movement.- Parameters:
freeColClient
- TheFreeColClient
for the game.canvas
- TheCanvas
to listen on.
-
-