Class MarbleGame.TableListener

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--MarbleGame.TableListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener
Enclosing class:
MarbleGame

protected class MarbleGame.TableListener
extends java.awt.event.MouseAdapter

TableListener is a MouseEventListener that listens for clicks on the surface of the marble game canvas. When a mouse is clicked on the canvas surface, it sends a message to the canvas object, asking it to set a mark at the location of the click. If this results in marks being placed on the canvas, the clear button is enabled. If there are 2 marks on the table, the shoot button is also enabled.


Constructor Summary
protected MarbleGame.TableListener()
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarbleGame.TableListener

protected MarbleGame.TableListener()
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Overrides:
mouseClicked in class java.awt.event.MouseAdapter