C# Class Smrf.NodeXL.Visualization.Wpf.MouseDragWithVisual

Represents a dragged object that has a visual representation.
This is an abstract base class. It maintains a Visual property that represents an object being dragged. It is up to the derived class to create the object.
Inheritance: MouseDrag
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_iMargin System.Int32
m_oGraphRectangle System.Windows.Rect
m_oVisual Visual

Public Methods

Method Description
AssertValid ( ) : void
MouseDragWithVisual ( Point mouseDownLocation, Rect graphRectangle, Int32 margin ) : System

Initializes a new instance of the MouseDragWithVisual class.

Protected Methods

Method Description
ForcePointToBeWithinMargins ( Point oPoint ) : Point

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

ForcePointToBeWithinMargins() protected method

protected ForcePointToBeWithinMargins ( Point oPoint ) : Point
oPoint Point
return Point

MouseDragWithVisual() public method

Initializes a new instance of the MouseDragWithVisual class.
public MouseDragWithVisual ( Point mouseDownLocation, Rect graphRectangle, Int32 margin ) : System
mouseDownLocation Point /// Location where the graph was clicked, in client coordinates. ///
graphRectangle System.Windows.Rect /// The graph rectangle. ///
margin System.Int32 /// The graph margin. ///
return System

Property Details

m_iMargin protected_oe property

protected Int32,System m_iMargin
return System.Int32

m_oGraphRectangle protected_oe property

protected Rect,System.Windows m_oGraphRectangle
return System.Windows.Rect

m_oVisual protected_oe property

protected Visual m_oVisual
return Visual