Class MainFrameComponentFactory.BugSummaryMouseListener

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Enclosing class:
    MainFrameComponentFactory

    private class MainFrameComponentFactory.BugSummaryMouseListener
    extends java.awt.event.MouseAdapter
    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.
    • Constructor Detail

      • BugSummaryMouseListener

        BugSummaryMouseListener​(@Nonnull
                                BugInstance bugInstance,
                                @Nonnull
                                javax.swing.JLabel label,
                                @Nonnull
                                SourceLineAnnotation link)
    • Method Detail

      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
        Overrides:
        mouseClicked in class java.awt.event.MouseAdapter
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
        Overrides:
        mouseEntered in class java.awt.event.MouseAdapter
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
        Overrides:
        mouseExited in class java.awt.event.MouseAdapter