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
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 |
OthelloMouseMgr
public OthelloMouseMgr(OthelloJCanvas board)
A simple constructor, which initiates the listener to this class.
- Parameters:
board
- The Graphical Othello board
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