Smrf.NodeXL.Visualization.Wpf.GraphDrawer.DrawEdge C# (CSharp) Method

DrawEdge() protected method

protected DrawEdge ( IEdge oEdge, GraphDrawingContext oGraphDrawingContext ) : void
oEdge IEdge
oGraphDrawingContext GraphDrawingContext
return void
    DrawEdge
    (
        IEdge oEdge,
        GraphDrawingContext oGraphDrawingContext
    )
    {
        Debug.Assert(oEdge != null);
        Debug.Assert(oGraphDrawingContext != null);
        AssertValid();

        EdgeDrawingHistory oEdgeDrawingHistory;

        if ( m_oEdgeDrawer.TryDrawEdge(oEdge, oGraphDrawingContext,
            out oEdgeDrawingHistory) )
        {
            Debug.Assert(oEdgeDrawingHistory != null);

            GetEdgeDrawingVisuals(oEdgeDrawingHistory).Children.Add(
                oEdgeDrawingHistory.DrawingVisual);

            // Save the EdgeDrawingHistory object.

            oEdge.SetValue(ReservedMetadataKeys.EdgeDrawingHistory,
                oEdgeDrawingHistory);
        }
    }