|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.gui.CanvasMouseListener
public final class CanvasMouseListener
Listens to mouse buttons being pressed at the level of the Canvas.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
LICENSE
|
static java.lang.String |
REVISION
|
| Constructor Summary | |
|---|---|
CanvasMouseListener(Canvas canvas,
GUI g,
Map m)
The constructor to use. |
|
| Method Summary | |
|---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when a mouse button was clicked. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters the component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits the component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button was pressed. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button was released. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String LICENSE
public static final java.lang.String REVISION
| Constructor Detail |
|---|
public CanvasMouseListener(Canvas canvas,
GUI g,
Map m)
canvas - The component this object gets created for.g - The GUI that holds information such as screen resolution.| Method Detail |
|---|
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - The MouseEvent that holds all the information.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - The MouseEvent that holds all the information.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - The MouseEvent that holds all the information.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - The MouseEvent that holds all the information.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - The MouseEvent that holds all the information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||