Smrf.NodeXL.Visualization.Wpf.NodeXLControl.CheckForToolTipsOnMouseMove C# (CSharp) Method

CheckForToolTipsOnMouseMove() protected method

protected CheckForToolTipsOnMouseMove ( System.Windows.Input.MouseEventArgs oMouseEventArgs ) : void
oMouseEventArgs System.Windows.Input.MouseEventArgs
return void
    CheckForToolTipsOnMouseMove
    (
        MouseEventArgs oMouseEventArgs
    )
    {
        Debug.Assert(oMouseEventArgs != null);
        AssertValid();

        // Don't do anything if the mouse is being dragged.

        if ( DragMightBeInProgress() )
        {
            return;
        }

        Point oMouseLocation = oMouseEventArgs.GetPosition(this);

        if (oMouseLocation.X == m_oLastMouseMoveLocation.X &&
            oMouseLocation.Y == m_oLastMouseMoveLocation.Y)
        {
            return;
        }

        m_oLastMouseMoveLocation = oMouseLocation;

        // If the mouse is over a vertex, get the vertex object.  (oVertex will
        // get set to null if the mouse is not over a vertex.)

        IVertex oVertex;

        m_oGraphDrawer.TryGetVertexFromPoint(oMouseLocation, out oVertex);

        // Update the tooltip tracker.

        m_oVertexToolTipTracker.OnMouseMoveOverObject(oVertex);
    }
NodeXLControl