//************************************************************************* // Method: SetVertexCategoryResults() // /// <summary> /// Stores the results of a call to <see /// cref="WorkbookSchemeAutoFiller.AutoFillByVertexCategory( /// Microsoft.Office.Interop.Excel.Workbook, String, Boolean, String)" />. /// </summary> /// /// <param name="vertexCategoryColumnName"> /// The name of the vertex table column containing vertex categories. /// </param> /// /// <param name="vertexCategoryNames"> /// An array of category names, indexed by vertex category scheme. /// </param> /// /// <remarks> /// Vertex category schemes can be obtained from <see /// cref="WorkbookSchemeAutoFiller.GetVertexCategoryScheme" />. /// </remarks> //************************************************************************* public void SetVertexCategoryResults( String vertexCategoryColumnName, String [] vertexCategoryNames ) { Debug.Assert( !String.IsNullOrEmpty(vertexCategoryColumnName) ); Debug.Assert(vertexCategoryNames != null); AssertValid(); m_eSchemeType = AutoFillSchemeType.VertexCategory; m_sVertexCategoryColumnName = vertexCategoryColumnName; m_asVertexCategoryNames = vertexCategoryNames; }
//************************************************************************* // Method: SetEdgeTimestampResults() // /// <summary> /// Stores the results of a call to <see /// cref="WorkbookSchemeAutoFiller.AutoFillByEdgeTimestamp" />. /// </summary> /// /// <param name="edgeTimestampColumnName"> /// The name of the edge table column containing edge timestamps. /// </param> /// /// <param name="edgeTimestampColumnFormat"> /// The format of the edge table column containing edge timestamps. /// </param> /// /// <param name="sourceCalculationNumber1"> /// The actual first source number used in the calculations. /// </param> /// /// <param name="sourceCalculationNumber2"> /// The actual second source number used in the calculations. /// </param> //************************************************************************* public void SetEdgeTimestampResults( String edgeTimestampColumnName, ExcelColumnFormat edgeTimestampColumnFormat, Double sourceCalculationNumber1, Double sourceCalculationNumber2 ) { Debug.Assert( !String.IsNullOrEmpty(edgeTimestampColumnName) ); AssertValid(); m_eSchemeType = AutoFillSchemeType.EdgeTimestamp; m_sEdgeTimestampColumnName = edgeTimestampColumnName; m_eEdgeTimestampColumnFormat = edgeTimestampColumnFormat; m_dEdgeTimestampSourceCalculationNumber1 = sourceCalculationNumber1; m_dEdgeTimestampSourceCalculationNumber2 = sourceCalculationNumber2; }
//************************************************************************* // Method: SetEdgeWeightResults() // /// <summary> /// Stores the results of a call to <see /// cref="WorkbookSchemeAutoFiller.AutoFillByEdgeWeight" />. /// </summary> /// /// <param name="edgeWeightColumnName"> /// The name of the edge table column containing edge weights. /// </param> /// /// <param name="sourceCalculationNumber1"> /// The actual first source number used in the calculations. /// </param> /// /// <param name="sourceCalculationNumber2"> /// The actual second source number used in the calculations. /// </param> /// /// <param name="decimalPlaces"> /// The number of decimal places displayed in the source column. /// </param> //************************************************************************* public void SetEdgeWeightResults( String edgeWeightColumnName, Double sourceCalculationNumber1, Double sourceCalculationNumber2, Int32 decimalPlaces ) { Debug.Assert( !String.IsNullOrEmpty(edgeWeightColumnName) ); Debug.Assert(decimalPlaces >= 0); AssertValid(); m_eSchemeType = AutoFillSchemeType.EdgeWeight; m_sEdgeWeightColumnName = edgeWeightColumnName; m_dEdgeWeightSourceCalculationNumber1 = sourceCalculationNumber1; m_dEdgeWeightSourceCalculationNumber2 = sourceCalculationNumber2; m_iEdgeWeightDecimalPlaces = decimalPlaces; }
//************************************************************************* // Constructor: AutoFillWorkbookWithSchemeResults() // /// <summary> /// Initializes a new instance of the <see /// cref="AutoFillWorkbookWithSchemeResults" /> class. /// </summary> //************************************************************************* public AutoFillWorkbookWithSchemeResults() { m_eSchemeType = AutoFillSchemeType.None; m_sVertexCategoryColumnName = null; m_asVertexCategoryNames = null; m_sEdgeWeightColumnName = null; m_dEdgeWeightSourceCalculationNumber1 = 0; m_dEdgeWeightSourceCalculationNumber2 = 0; m_iEdgeWeightDecimalPlaces = 0; m_sEdgeTimestampColumnName = null; m_eEdgeTimestampColumnFormat = ExcelColumnFormat.Other; m_dEdgeTimestampSourceCalculationNumber1 = 0; m_dEdgeTimestampSourceCalculationNumber2 = 0; AssertValid(); }