org.jscience.architecture.traffic.edit
Class EditController.MousePosListener

java.lang.Object
  extended by org.jscience.architecture.traffic.edit.EditController.MousePosListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Enclosing class:
EditController

protected class EditController.MousePosListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

Shows the mouse position in the status bar.


Constructor Summary
protected EditController.MousePosListener()
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          Empty implementation, required by the MouseListener interface.
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when the mouse cursor is dragged over the View.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse cursor enters the View.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse cursor exits the View.
 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.
protected  void posToScreen(java.awt.Point p)
          Sets the status bar text to be the current mouse position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditController.MousePosListener

protected EditController.MousePosListener()
Method Detail

posToScreen

protected void posToScreen(java.awt.Point p)
Sets the status bar text to be the current mouse position.

Parameters:
p - DOCUMENT ME!

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the View.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - DOCUMENT ME!

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button is released on the View.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - DOCUMENT ME!

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor is moved over the View.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
e - DOCUMENT ME!

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when the mouse cursor is dragged over the View.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
e - DOCUMENT ME!

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse cursor enters the View.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - DOCUMENT ME!

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse cursor exits the View.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - DOCUMENT ME!

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Empty implementation, required by the MouseListener interface.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - DOCUMENT ME!