|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.event.MouseAdapter | +--heineman.klondike.BuildablePileController
Controls all actions to do with mouse events over the BuildablePile widget.
Creation date: (11/10/01 8:08:51 PM)
Field Summary | |
protected BuildablePileView |
src
The src BuildablePileView that initiated the event. |
protected Klondike |
theGame
The game that we are partly controlling. |
Constructor Summary | |
BuildablePileController(Klondike theGame,
BuildablePileView bpv)
BuildablePileController constructor comment. |
Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent me)
Try to play the faceup card directly to the foundation. |
void |
mousePressed(java.awt.event.MouseEvent me)
Coordinate reaction to the beginning of a Drag Event. |
void |
mouseReleased(java.awt.event.MouseEvent me)
Coordinate reaction to the completion of a Drag Event. |
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 |
protected Klondike theGame
protected BuildablePileView src
Constructor Detail |
public BuildablePileController(Klondike theGame, BuildablePileView bpv)
Method Detail |
public void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
me
- java.awt.event.MouseEventpublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
me
- java.awt.event.MouseEventpublic void mouseReleased(java.awt.event.MouseEvent me)
A bit of a challenge to construct the appropriate move, because cards can be dragged both from the WastePile (as a CardView widget) and the BuildablePileView (as a ColumnView widget).
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
me
- java.awt.event.MouseEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |