edu.kzoo.grid.gui
Class GridAppFrame.DisplayMouseListener

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--edu.kzoo.grid.gui.GridAppFrame.DisplayMouseListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener
Enclosing class:
GridAppFrame

public class GridAppFrame.DisplayMouseListener
extends java.awt.event.MouseAdapter

Nested class that handles simple mouse presses over the grid display. Can be extended to handle other mouse events (mouse release, mouse click, etc.).


Constructor Summary
GridAppFrame.DisplayMouseListener()
           
 
Method Summary
 Location getMouseLocation(java.awt.event.MouseEvent evt)
          Returns the Location in the grid corresponding to the location of the mouse event.
 void mousePressed(java.awt.event.MouseEvent evt)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridAppFrame.DisplayMouseListener

public GridAppFrame.DisplayMouseListener()
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

getMouseLocation

public Location getMouseLocation(java.awt.event.MouseEvent evt)
Returns the Location in the grid corresponding to the location of the mouse event.