C# 클래스 Smrf.NodeXL.Visualization.Wpf.DraggedTranslation

Represents a mouse drag that is translating the graph via a TranslateTransform.
Create an instance of this class when the graph is clicked while NodeXLControl.MouseMode is set to . When the mouse is moved, call to get the distances to translate the graph.
상속: MouseDrag
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_dMouseDownTranslateX Double
m_dMouseDownTranslateY Double
m_oMouseDownLocationScreen Point

공개 메소드들

메소드 설명
AssertValid ( ) : void
DraggedTranslation ( Point mouseDownLocation, Point mouseDownLocationScreen, Double mouseDownTranslateX, Double mouseDownTranslateY ) : System

Initializes a new instance of the class.

GetTranslationDistances ( Point currentMouseLocationScreen, Double &newTranslateX, Double &newTranslateY ) : void

메소드 상세

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

DraggedTranslation() 공개 메소드

Initializes a new instance of the class.
public DraggedTranslation ( Point mouseDownLocation, Point mouseDownLocationScreen, Double mouseDownTranslateX, Double mouseDownTranslateY ) : System
mouseDownLocation Point /// Location where the graph was clicked, in client coordinates. ///
mouseDownLocationScreen Point /// Location where the graph was clicked, in screen coordinates. ///
mouseDownTranslateX Double /// x-axis translation when the mouse was clicked. ///
mouseDownTranslateY Double /// y-axis translation when the mouse was clicked. ///
리턴 System

GetTranslationDistances() 공개 메소드

public GetTranslationDistances ( Point currentMouseLocationScreen, Double &newTranslateX, Double &newTranslateY ) : void
currentMouseLocationScreen Point
newTranslateX Double
newTranslateY Double
리턴 void

프로퍼티 상세

m_dMouseDownTranslateX 보호되어 있는 프로퍼티

protected Double m_dMouseDownTranslateX
리턴 Double

m_dMouseDownTranslateY 보호되어 있는 프로퍼티

protected Double m_dMouseDownTranslateY
리턴 Double

m_oMouseDownLocationScreen 보호되어 있는 프로퍼티

protected Point m_oMouseDownLocationScreen
리턴 Point