public boolean mouseClicked(MouseEvent e){
  if (selectedGraphic != null && !show_plot_) {
switch (e.getClickCount()) {
case 1:
      addSelectionToPlotList();
    generatePlot();
  repaint();
break;
case 2:
repaint();
break;
default :
break;
}
return true;
}
 else {
return false;
}
}

public boolean mouseClicked ( MouseEvent e ) { if ( selectedGraphic != null && ! show_plot_ ) { switch ( e . getClickCount ( ) ) { case 1 : addSelectionToPlotList ( ) ; generatePlot ( ) ; repaint ( ) ; break ; case 2 : repaint ( ) ; break ; default : break ; } return true ; } else { return false ; } }
called whenever the mouse is clicked by the user and one of the requested mouse modes is active .
