C# 클래스 Smrf.NodeXL.ExcelTemplate.SubgraphImageCreator

Creates images of a subgraph for each of a graph's vertices and saves the images to disk.
Call CreateSubgraphImagesAsync to create the images. Call CancelAsync to stop the creation of images. Handle the and events to monitor the progress and completion of image creation.
상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oBackgroundWorker System.ComponentModel.BackgroundWorker

공개 메소드들

메소드 설명
CancelAsync ( ) : void
CreateSubgraphImagesAsync ( IGraph graph, ICollection selectedVertices, Decimal levels, System.Boolean saveToFolder, String folder, Size imageSizePx, ImageFormat imageFormat, System.Boolean createThumbnails, Size thumbnailSizePx, System.Boolean selectedVerticesOnly, System.Boolean selectVertex, System.Boolean selectIncidentEdges, GeneralUserSettings generalUserSettings, LayoutUserSettings layoutUserSettings ) : void
SubgraphImageCreator ( ) : System

Initializes a new instance of the SubgraphImageCreator class.

보호된 메소드들

메소드 설명
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
CloneVertexIntoSubgraph ( IVertex oOriginalVertex, IGraph oSubgraph, Decimal decLevels ) : IVertex
CreateAndSaveSubgraphImageInFolder ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : void
CreateAndSaveSubgraphImages ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, TemporaryImages oThumbnailImages ) : void
CreateAndSaveThumbnailImage ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, TemporaryImages oThumbnailImages ) : void
CreateGraphDrawingContext ( Rectangle oSubgraphRectangle, GeneralUserSettings oGeneralUserSettings ) : GraphDrawingContext
CreateLayout ( LayoutUserSettings oLayoutUserSettings ) : ILayout
CreateNodeXLVisual ( GeneralUserSettings oGeneralUserSettings ) : NodeXLVisual
CreateSubgraph ( IVertex oOriginalVertex, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : IGraph
CreateSubgraphImage ( IGraph oSubgraph, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, Size oImageSizePx ) : Bitmap
CreateSubgraphImagesInternal ( CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
SaveBitmap ( Bitmap oBitmap, String sFileNameWithPath, ImageFormat eImageFormat ) : void
SaveSubgraphImage ( Bitmap oBitmap, String sFolder, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : String

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

BackgroundWorker_DoWork() 보호된 메소드

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
리턴 void

BackgroundWorker_ProgressChanged() 보호된 메소드

protected BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
sender object
e System.ComponentModel.ProgressChangedEventArgs
리턴 void

BackgroundWorker_RunWorkerCompleted() 보호된 메소드

protected BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e System.ComponentModel.RunWorkerCompletedEventArgs
리턴 void

CancelAsync() 공개 메소드

public CancelAsync ( ) : void
리턴 void

CloneVertexIntoSubgraph() 보호된 메소드

protected CloneVertexIntoSubgraph ( IVertex oOriginalVertex, IGraph oSubgraph, Decimal decLevels ) : IVertex
oOriginalVertex IVertex
oSubgraph IGraph
decLevels Decimal
리턴 IVertex

CreateAndSaveSubgraphImageInFolder() 보호된 메소드

protected CreateAndSaveSubgraphImageInFolder ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : void
oSubgraph IGraph
sVertexName String
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
리턴 void

CreateAndSaveSubgraphImages() 보호된 메소드

protected CreateAndSaveSubgraphImages ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, TemporaryImages oThumbnailImages ) : void
oSubgraph IGraph
sVertexName String
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
oThumbnailImages TemporaryImages
리턴 void

CreateAndSaveThumbnailImage() 보호된 메소드

protected CreateAndSaveThumbnailImage ( IGraph oSubgraph, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, TemporaryImages oThumbnailImages ) : void
oSubgraph IGraph
sVertexName String
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
oThumbnailImages TemporaryImages
리턴 void

CreateGraphDrawingContext() 보호된 메소드

protected CreateGraphDrawingContext ( Rectangle oSubgraphRectangle, GeneralUserSettings oGeneralUserSettings ) : GraphDrawingContext
oSubgraphRectangle System.Drawing.Rectangle
oGeneralUserSettings GeneralUserSettings
리턴 Smrf.NodeXL.Visualization.Wpf.GraphDrawingContext

CreateLayout() 보호된 메소드

protected CreateLayout ( LayoutUserSettings oLayoutUserSettings ) : ILayout
oLayoutUserSettings LayoutUserSettings
리턴 ILayout

CreateNodeXLVisual() 보호된 메소드

protected CreateNodeXLVisual ( GeneralUserSettings oGeneralUserSettings ) : NodeXLVisual
oGeneralUserSettings GeneralUserSettings
리턴 Smrf.NodeXL.Visualization.Wpf.NodeXLVisual

CreateSubgraph() 보호된 메소드

protected CreateSubgraph ( IVertex oOriginalVertex, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : IGraph
oOriginalVertex IVertex
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
리턴 IGraph

CreateSubgraphImage() 보호된 메소드

protected CreateSubgraphImage ( IGraph oSubgraph, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, Size oImageSizePx ) : Bitmap
oSubgraph IGraph
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
oImageSizePx System.Drawing.Size
리턴 System.Drawing.Bitmap

CreateSubgraphImagesAsync() 공개 메소드

public CreateSubgraphImagesAsync ( IGraph graph, ICollection selectedVertices, Decimal levels, System.Boolean saveToFolder, String folder, Size imageSizePx, ImageFormat imageFormat, System.Boolean createThumbnails, Size thumbnailSizePx, System.Boolean selectedVerticesOnly, System.Boolean selectVertex, System.Boolean selectIncidentEdges, GeneralUserSettings generalUserSettings, LayoutUserSettings layoutUserSettings ) : void
graph IGraph
selectedVertices ICollection
levels Decimal
saveToFolder System.Boolean
folder String
imageSizePx System.Drawing.Size
imageFormat System.Drawing.Imaging.ImageFormat
createThumbnails System.Boolean
thumbnailSizePx System.Drawing.Size
selectedVerticesOnly System.Boolean
selectVertex System.Boolean
selectIncidentEdges System.Boolean
generalUserSettings GeneralUserSettings
layoutUserSettings LayoutUserSettings
리턴 void

CreateSubgraphImagesInternal() 보호된 메소드

protected CreateSubgraphImagesInternal ( CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
oBackgroundWorker System.ComponentModel.BackgroundWorker
oDoWorkEventArgs System.ComponentModel.DoWorkEventArgs
리턴 void

SaveBitmap() 보호된 메소드

protected SaveBitmap ( Bitmap oBitmap, String sFileNameWithPath, ImageFormat eImageFormat ) : void
oBitmap System.Drawing.Bitmap
sFileNameWithPath String
eImageFormat System.Drawing.Imaging.ImageFormat
리턴 void

SaveSubgraphImage() 보호된 메소드

protected SaveSubgraphImage ( Bitmap oBitmap, String sFolder, String sVertexName, CreateSubgraphImagesAsyncArgs oCreateSubgraphImagesAsyncArgs ) : String
oBitmap System.Drawing.Bitmap
sFolder String
sVertexName String
oCreateSubgraphImagesAsyncArgs CreateSubgraphImagesAsyncArgs
리턴 String

SubgraphImageCreator() 공개 메소드

Initializes a new instance of the SubgraphImageCreator class.
public SubgraphImageCreator ( ) : System
리턴 System

프로퍼티 상세

m_oBackgroundWorker 보호되어 있는 프로퍼티

protected BackgroundWorker,System.ComponentModel m_oBackgroundWorker
리턴 System.ComponentModel.BackgroundWorker