Class ZScoreHitDetector

    • Field Detail

      • m_Owner

        protected ZScore m_Owner
        zscore plot for detection
    • Constructor Detail

      • ZScoreHitDetector

        public ZScoreHitDetector​(ZScore owner)
        Constructor
        Parameters:
        owner - ZScore for detection
    • Method Detail

      • getOwner

        public ZScore getOwner()
        Get the zscore plot for detection
        Returns:
        Z-score which owns this
      • isHit

        protected double[] isHit​(MouseEvent e)
        Description copied from class: AbstractHitDetector
        Checks for a hit.
        Specified by:
        isHit in class AbstractHitDetector<double[],​String>
        Parameters:
        e - the MouseEvent (for coordinates)
        Returns:
        the associated object with the hit, otherwise null
      • processHit

        protected String processHit​(MouseEvent e,
                                    double[] hit)
        Description copied from class: AbstractHitDetector
        Performs the action when a hit is detected.
        Specified by:
        processHit in class AbstractHitDetector<double[],​String>
        Parameters:
        e - the MouseEvent (for coordinates)
        hit - the object that got determined by the hit
        Returns:
        optional result of processing the event