Smrf.NodeXL.ExcelTemplate.AutoFillResultsLegendControl.DrawAutoFilledVertexResults C# (CSharp) Method

DrawAutoFilledVertexResults() protected method

protected DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
return System.Int32
    DrawAutoFilledVertexResults
    (
        DrawingObjects oDrawingObjects,
        Rectangle oColumnRectangle
    )
    {
        Debug.Assert(oDrawingObjects != null);
        AssertValid();

        Int32 iTop = oColumnRectangle.Top;

        if (m_oAutoFillWorkbookResults.AutoFilledVertexNonXYColumnCount > 0)
        {
            DrawColumnHeader(oDrawingObjects, VertexPropertyHeader,
                oColumnRectangle.Left, oColumnRectangle.Right, ref iTop);

            Int32 iResultsLeft = oColumnRectangle.Left;
            Int32 iResultsRight = oColumnRectangle.Right;

            AutoFillColorColumnResults oVertexColorResults =
                m_oAutoFillWorkbookResults.VertexColorResults;

            if (oVertexColorResults.ColumnAutoFilled)
            {
                DrawColorColumnResults(oDrawingObjects, ColorCaption,
                    oVertexColorResults, VertexShape.Disk,
                    oColumnRectangle, iResultsLeft, iResultsRight, ref iTop);
            }

            AutoFillNumericRangeColumnResults oVertexRadiusResults =
                m_oAutoFillWorkbookResults.VertexRadiusResults;

            if (oVertexRadiusResults.ColumnAutoFilled)
            {
                DrawRampResults(oDrawingObjects,
                    oVertexRadiusResults.SourceColumnName, "Size",
                    oVertexRadiusResults.SourceCalculationNumber1,
                    oVertexRadiusResults.SourceCalculationNumber2,
                    oVertexRadiusResults.DecimalPlaces, oColumnRectangle,
                    iResultsLeft, iResultsRight, ref iTop);
            }

            AutoFillNumericRangeColumnResults oVertexAlphaResults =
                m_oAutoFillWorkbookResults.VertexAlphaResults;

            if (oVertexAlphaResults.ColumnAutoFilled)
            {
                DrawAutoFilledAlphaResults(oDrawingObjects,
                    oVertexAlphaResults.SourceColumnName,
                    oVertexAlphaResults.SourceCalculationNumber1,
                    oVertexAlphaResults.SourceCalculationNumber2,
                    oVertexAlphaResults.DecimalPlaces,
                    oVertexAlphaResults.DestinationNumber1,
                    oVertexAlphaResults.DestinationNumber2,
                    oColumnRectangle, iResultsLeft, iResultsRight, ref iTop);
            }
        }

        return (iTop);
    }