Package gov.nih.mipav.view
Class ViewJFrameRegisteredImages.MouseClickAdapter
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- gov.nih.mipav.view.ViewJFrameRegisteredImages.MouseClickAdapter
-
- All Implemented Interfaces:
java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.util.EventListener
- Enclosing class:
- ViewJFrameRegisteredImages
private class ViewJFrameRegisteredImages.MouseClickAdapter extends java.awt.event.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:
ViewJFrameRegisteredImages#bringToFront(String)
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MouseClickAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(java.awt.event.MouseEvent event)
Responds only on double-clicked events from the JList.
-
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.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 interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classjava.awt.event.MouseAdapter
- See Also:
ViewJFrameRegisteredImages#bringToFront(String)
-
-