C# Class 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.
Inheritance: MouseDrag
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_dMouseDownTranslateX Double
m_dMouseDownTranslateY Double
m_oMouseDownLocationScreen Point

Public Methods

Method Description
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

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

DraggedTranslation() public method

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. ///
return System

GetTranslationDistances() public method

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

Property Details

m_dMouseDownTranslateX protected_oe property

protected Double m_dMouseDownTranslateX
return Double

m_dMouseDownTranslateY protected_oe property

protected Double m_dMouseDownTranslateY
return Double

m_oMouseDownLocationScreen protected_oe property

protected Point m_oMouseDownLocationScreen
return Point