Class MainFrameComponentFactory.BugSummaryMouseListener
java.lang.Object
java.awt.event.MouseAdapter
edu.umd.cs.findbugs.gui2.MainFrameComponentFactory.BugSummaryMouseListener
- All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
- Enclosing class:
MainFrameComponentFactory
Listens for when cursor is over the label and when it is clicked. When
the cursor is over the label will make the label text blue and the cursor
the hand cursor. When clicked will take the user to the source code tab
and to the lines of code connected to the SourceLineAnnotation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BugInstanceprivate final JLabelprivate final SourceLineAnnotation -
Constructor Summary
ConstructorsConstructorDescriptionBugSummaryMouseListener(BugInstance bugInstance, JLabel label, SourceLineAnnotation link) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidMethods inherited from class MouseAdapter
mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
-
Field Details
-
bugInstance
-
label
-
note
-
-
Constructor Details
-
BugSummaryMouseListener
BugSummaryMouseListener(@Nonnull BugInstance bugInstance, @Nonnull JLabel label, @Nonnull SourceLineAnnotation link)
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMouseAdapter
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classMouseAdapter
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classMouseAdapter
-