def isIntersecting(self, pp, symbol, iPoint, onY2, xBrush,
                             yBrush, brushWidth, brushHeight):

        c = symbol.getParent()
        p = c.getPoint(iPoint)
        prevX = Double.NaN
        x = p.getX()
        nextX = Double.NaN
        prevY = Double.NaN
        y = p.getY()
        nextY = Double.NaN
        if iPoint > 0:
            prevX = c.getPoint(iPoint-1).getX()
            prevY = c.getPoint(iPoint-1).getY()

        if iPoint+1 < c.getNPoints():
            nextX = c.getPoint(iPoint+1).getX()
            nextY = c.getPoint(iPoint+1).getY()


        # Treat mouse cursor as if it were a 0x0 pixel symbol
        # centered at xBrush, yBrush to which an annotation of
        # the width, height of the brush is attached.
        top = symbol.getBrushLocation().getUpperLeftY(yBrush, brushHeight, 0)
        bottom = top + brushHeight
        left = symbol.getBrushLocation().getUpperLeftX(xBrush, brushWidth, 0)
        right = left + brushWidth

        result = self.isIntersecting13(pp, symbol,
                                prevX, x, nextX,
                                prevY, y, nextY, onY2,
                                top, right, bottom, left)

        return result



    # width of border of symbol displayed in legend key
dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py/SymbolType.isIntersecting/original