C# 클래스 Smrf.NodeXL.Visualization.Wpf.NodeXLControl.GraphImageCenterer

Centers a graph image for the NodeXLControl and later restores the original graph location.
This prepares the NodeXLControl for being saved as an image. It adjusts the control's transforms so that the image will be centered on the same point on the graph that the control is centered on. This prevents an unwanted graph shift when the image has dimensions different from those of the control.

Because the NodeXLControl's transforms are not public, this class is embedded within the control.

Pass an image size to CenterGraphImage, which immediately centers the graph within the image dimensions. Call to restore the graph to its original location.

상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_dOriginalScaleTransformForRenderCenterX Double
m_dOriginalScaleTransformForRenderCenterY Double
m_dOriginalTranslateTransformForRenderX Double
m_dOriginalTranslateTransformForRenderY Double
m_oNodeXLControl NodeXLControl

공개 메소드들

메소드 설명
CenterGraphImage ( Size imageSize ) : void
GraphImageCenterer ( NodeXLControl nodeXLControl ) : System

Initializes a new instance of the GraphImageCenterer class.

RestoreCenter ( ) : void

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

CenterGraphImage() 공개 메소드

public CenterGraphImage ( Size imageSize ) : void
imageSize System.Windows.Size
리턴 void

GraphImageCenterer() 공개 메소드

Initializes a new instance of the GraphImageCenterer class.
public GraphImageCenterer ( NodeXLControl nodeXLControl ) : System
nodeXLControl NodeXLControl /// The control for which a graph image will be created. ///
리턴 System

RestoreCenter() 공개 메소드

public RestoreCenter ( ) : void
리턴 void

프로퍼티 상세

m_dOriginalScaleTransformForRenderCenterX 보호되어 있는 프로퍼티

protected Double m_dOriginalScaleTransformForRenderCenterX
리턴 Double

m_dOriginalScaleTransformForRenderCenterY 보호되어 있는 프로퍼티

protected Double m_dOriginalScaleTransformForRenderCenterY
리턴 Double

m_dOriginalTranslateTransformForRenderX 보호되어 있는 프로퍼티

protected Double m_dOriginalTranslateTransformForRenderX
리턴 Double

m_dOriginalTranslateTransformForRenderY 보호되어 있는 프로퍼티

protected Double m_dOriginalTranslateTransformForRenderY
리턴 Double

m_oNodeXLControl 보호되어 있는 프로퍼티

protected NodeXLControl,Smrf.NodeXL.Visualization.Wpf m_oNodeXLControl
리턴 NodeXLControl