Simulator/src/view/MapPanel.java
/**
	 * Method called when the user clicks the mouse. It is used to show about
	 * boxes for map components.
	 * 
	 * @param x
	 *            The x coordinate.
	 * @param y
	 *            The y coordinate.
	 */
Method called when the user clicks the mouse. It is used to show about
boxes for map components.

@param x
The x coordinate.
@param y
The y coordinate.
Method called when the user clicks the mouse . It is used to show about boxes for map components . @param x The x coordinate . @param y The y coordinate .
public void clicked(int x, int y) {
		Set<MapComponent> components = mapComponents.keySet();
		for (MapComponent c : components) {
			MapComponentView view = mapComponents.get(c);
			if (view.getBounds().contains(x, y)) {
				JOptionPane.showMessageDialog(this, view.getAboutString(), "Information",
						JOptionPane.INFORMATION_MESSAGE);
				return;
			}
		}
	}
public void clicked ( int x , int y ) { Set < MapComponent > components = mapComponents . keySet ( ) ; for ( MapComponent c : components ) { MapComponentView view = mapComponents . get ( c ) ; if ( view . getBounds ( ) . contains ( x , y ) ) { JOptionPane . showMessageDialog ( this , view . getAboutString ( ) , "Information" , JOptionPane . INFORMATION_MESSAGE ) ; return ; } } }
Method called when the user clicks the mouse.
Method called when the user clicks the mouse .