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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseClicked​(java.awt.event.MouseEvent e)  
      void mouseEntered​(java.awt.event.MouseEvent e)  
      void mouseExited​(java.awt.event.MouseEvent e)  
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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