|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.event.MouseAdapter
Board.DemoAdapter
public class Board.DemoAdapter
This nested class is to allow the use of the MouseAdapter class Extends MouseAdapter public
| Constructor Summary | |
|---|---|
Board.DemoAdapter()
|
|
| Method Summary | |
|---|---|
void |
mouseDragged(java.awt.event.MouseEvent e)
This method sets the draggedPiece to follow the mouse and calls repaint(). |
void |
mouseMoved(java.awt.event.MouseEvent e)
This method sets the draggedPiece to follow the mouse and calls repaint() only if the player is forced to multi-jump. |
void |
mousePressed(java.awt.event.MouseEvent e)
This method is used to identify the location of the mouse click in relation to the board in general if there is a Piece at this location it becomes the draggedPiece public |
void |
mouseReleased(java.awt.event.MouseEvent e)
This method determines where the mouse is released. |
| Methods inherited from class java.awt.event.MouseAdapter |
|---|
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Board.DemoAdapter()
| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdaptere - Instance of MouceEventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class java.awt.event.MouseAdaptere - Instance of MouseEventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class java.awt.event.MouseAdaptere - Instance of MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdaptere - Instance of MouseEvent
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||