Class CanvasMouseListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.util.EventListener

    public final class CanvasMouseListener
    extends FreeColClientHolder
    implements java.awt.event.MouseListener
    Listens to mouse buttons being pressed at the level of the Canvas.
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • CanvasMouseListener

        public CanvasMouseListener​(FreeColClient freeColClient)
        Create a new mouse listener.
        Parameters:
        freeColClient - The enclosing FreeColClient.
    • Method Detail

      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener