|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.tools.ToolListener
public class ToolListener
Serves as MouseListener and MouseMotionListener for View. Asks Controller for current Tool and invokes a method of this Tool when necessary. Created and set by Controller.
| Constructor Summary | |
|---|---|
ToolListener(Controller con,
View v)
Creates a ToolListener. |
|
| Method Summary | |
|---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
Empty implementation, required by the MouseListener interface. |
void |
mouseDragged(java.awt.event.MouseEvent e)
DOCUMENT ME! |
void |
mouseEntered(java.awt.event.MouseEvent e)
Empty implementation, required by the MouseListener interface. |
void |
mouseExited(java.awt.event.MouseEvent e)
Empty implementation, required by the MouseListener interface. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor is moved over the View. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the View. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button is released on the View. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToolListener(Controller con,
View v)
con - The Controller maintaining the currently selected Tool.con - The View.| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - DOCUMENT ME!public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - DOCUMENT ME!public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - DOCUMENT ME!public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - DOCUMENT ME!public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenere - DOCUMENT ME!public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - DOCUMENT ME!public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||