brlandry
Class GrandfatherColumnController

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--brlandry.GrandfatherColumnController
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener

public class GrandfatherColumnController
extends java.awt.event.MouseAdapter

Responds to mouse events over the ColumnView widget. These incluse mouseClicked, mousePressed, and mouseReleased.


Field Summary
protected  ColumnView source
           
protected  GrandfatherClock theGame
           
 
Constructor Summary
GrandfatherColumnController(GrandfatherClock theGame, ColumnView source)
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent me)
          Attempts to move card to foundation
 void mousePressed(java.awt.event.MouseEvent me)
          Begin a Drag move
 void mouseReleased(java.awt.event.MouseEvent me)
          Complete a Drag move
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theGame

protected GrandfatherClock theGame

source

protected ColumnView source
Constructor Detail

GrandfatherColumnController

public GrandfatherColumnController(GrandfatherClock theGame,
                                   ColumnView source)
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
Attempts to move card to foundation

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter
Parameters:
me - MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Begin a Drag move

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter
Parameters:
me - MouseEvent

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Complete a Drag move

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter
Parameters:
me - MouseEvent