Class ViewJFrameRegisteredImages.MouseClickAdapter

java.lang.Object
java.awt.event.MouseAdapter
gov.nih.mipav.view.ViewJFrameRegisteredImages.MouseClickAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
ViewJFrameRegisteredImages

private class ViewJFrameRegisteredImages.MouseClickAdapter extends MouseAdapter
As an extension of MouseAdapter, this class merely responds on clicked list events. In particular, the double-clicked item is brought to the front if the image is associated with an image frame.
See Also:
  • invalid reference
    ViewJFrameRegisteredImages#bringToFront(String)
  • Constructor Details

    • MouseClickAdapter

      private MouseClickAdapter()
  • Method Details

    • mouseClicked

      public void mouseClicked(MouseEvent event)
      Responds only on double-clicked events from the JList. The double-clicked list item brings to the front the frame of the associated image.

      Ignores ClassCastExceptions, and will present to the user the error messages if there are NullPointerExceptions.

      Specified by:
      mouseClicked in interface MouseListener
      Overrides:
      mouseClicked in class MouseAdapter
      See Also:
      • invalid reference
        ViewJFrameRegisteredImages#bringToFront(String)