Package edu.umd.cs.findbugs.gui2
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 BugInstance
private final JLabel
private final SourceLineAnnotation
-
Constructor Summary
ConstructorsConstructorDescriptionBugSummaryMouseListener
(BugInstance bugInstance, JLabel label, SourceLineAnnotation link) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Methods inherited from class java.awt.event.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:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMouseAdapter
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classMouseAdapter
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classMouseAdapter
-