@Override public void mousePressed(MouseEvent e){
synchronized (mouseLock) {
    mouseX=userX(e.getX());
    mouseY=userY(e.getY());
    mousePressed=true;
  }
  if (e.getButton() == MouseEvent.BUTTON1) {
    for (    DrawListener listener : listeners)     listener.mousePressed(userX(e.getX()),userY(e.getY()));
  }
}

@ Override public void mousePressed ( MouseEvent e ) { synchronized ( mouseLock ) { mouseX = userX ( e . getX ( ) ) ; mouseY = userY ( e . getY ( ) ) ; mousePressed = true ; } if ( e . getButton ( ) == MouseEvent . BUTTON1 ) { for ( DrawListener listener : listeners ) listener . mousePressed ( userX ( e . getX ( ) ) , userY ( e . getY ( ) ) ) ; } }
this method cannot be called directly .
