othello.gui
Class OthelloMouseMgr

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--othello.gui.OthelloMouseMgr
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class OthelloMouseMgr
extends java.awt.event.MouseAdapter

Function as a MouseManager for the GUI towards the player.

Version:
$Revision: 1.0.1, 2003-09-18 $
Author:
Peter Larsson

Constructor Summary
OthelloMouseMgr(OthelloJCanvas board)
          A simple constructor, which initiates the listener to this class.
 
Method Summary
 void mousePressed(java.awt.event.MouseEvent ev)
          The left button of the mouse has been pressed.
 void mouseReleased(java.awt.event.MouseEvent ev)
          The left button of the mouse has been released.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OthelloMouseMgr

public OthelloMouseMgr(OthelloJCanvas board)

A simple constructor, which initiates the listener to this class.

Parameters:
board - The Graphical Othello board
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent ev)

The left button of the mouse has been pressed.

Overrides:
mousePressed in class java.awt.event.MouseAdapter
Parameters:
ev - A mouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent ev)

The left button of the mouse has been released.

Overrides:
mouseReleased in class java.awt.event.MouseAdapter
Parameters:
ev - A mouseEvent