Пример #1
0
  /**
   * Handle left click on a picture by bringing it to the top.
   *
   * @param event The object providing details of the mouse event.
   */
  public void mousePressed(final MouseEvent event) {
    Picture picture;

    if (!event.isMetaDown()) {
      picture = mMosaic.pictureAt(event.getX(), event.getY());
      if (null != picture) bringToTop(picture);
    }
  }