C# Class Smrf.NodeXL.ExcelTemplate.GraphImporter

Imports edges and vertices from a graph to the edge and vertex worksheets.
This class is typically used when an external file is imported into a NodeXL workbook. The caller should first read the file into a NodeXL graph using one of the graph adapter classes, then call the method in this class to import the edges and vertices from the graph into a NodeXL workbook.
Inheritance: Object
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
GetImportedFileDescription ( String fileType, String fileName ) : String
GetImportedGraphMLFileDescription ( String graphMLFileName, IGraph graph ) : String
ImportGraph ( IGraph sourceGraph, String edgeAttributes, String vertexAttributes, System.Boolean clearTablesFirst, Microsoft destinationNodeXLWorkbook ) : void
UpdateGraphHistoryAfterImport ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension ) : void
UpdateGraphHistoryAfterImportWithoutPermissionCheck ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension, PerWorkbookSettings perWorkbookSettings ) : void

Private Methods

Method Description
CleanUpAttributeValue ( Object value ) : Object
GetAttributeColumn ( ListObject oTable, String sAttribute, ListColumn &oAttributeColumn, Range &oAttributeColumnData ) : void
ImportEdges ( IGraph oSourceGraph, String asEdgeAttributes, ListObject oEdgeTable, Range oVertex1NameColumnData, Range oVertex2NameColumnData, System.Boolean bAppendToTable ) : void
ImportVertexAttributes ( IGraph oSourceGraph, String asVertexAttributes, Int32>.Dictionary oVertexDictionary, ListObject oVertexTable ) : void
ImportVertices ( IGraph oSourceGraph, String asVertexAttributes, ListObject oVertexTable, Range oVertexNameColumnData, Range oVisibilityColumnData ) : void
SetRangeValues ( Range oUpperLeftCornerMarker, Object aoValues, System.Boolean bConvertUrlsToHyperlinks ) : void

Method Details

GetImportedFileDescription() public static method

public static GetImportedFileDescription ( String fileType, String fileName ) : String
fileType String
fileName String
return String

GetImportedGraphMLFileDescription() public static method

public static GetImportedGraphMLFileDescription ( String graphMLFileName, IGraph graph ) : String
graphMLFileName String
graph IGraph
return String

ImportGraph() public static method

public static ImportGraph ( IGraph sourceGraph, String edgeAttributes, String vertexAttributes, System.Boolean clearTablesFirst, Microsoft destinationNodeXLWorkbook ) : void
sourceGraph IGraph
edgeAttributes String
vertexAttributes String
clearTablesFirst System.Boolean
destinationNodeXLWorkbook Microsoft
return void

UpdateGraphHistoryAfterImport() public static method

public static UpdateGraphHistoryAfterImport ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension ) : void
destinationNodeXLWorkbook Microsoft
importDescription String
suggestedFileNameNoExtension String
return void

UpdateGraphHistoryAfterImportWithoutPermissionCheck() public static method

public static UpdateGraphHistoryAfterImportWithoutPermissionCheck ( Microsoft destinationNodeXLWorkbook, String importDescription, String suggestedFileNameNoExtension, PerWorkbookSettings perWorkbookSettings ) : void
destinationNodeXLWorkbook Microsoft
importDescription String
suggestedFileNameNoExtension String
perWorkbookSettings PerWorkbookSettings
return void