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

Represents a marquee that might be dragged with the mouse.
Create an instance of this class when an empty area of the graph is clicked. When the mouse is moved, check to determine whether the mouse has moved far enough to begin a marquee drag. If returns true, call to create a Visual to represent the dragged marquee.
Inheritance: MouseDragWithVisual
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oMarqueeRectangle System.Windows.Rect

Public Methods

Method Description
AssertValid ( ) : void
CreateVisual ( Point currentMouseLocation, Color backgroundContrastColor ) : Visual
DraggedMarquee ( Point mouseDownLocation, Rect graphRectangle, Int32 margin ) : System

Initializes a new instance of the DraggedMarquee class.

Protected Methods

Method Description
CreateMarqueeRectangle ( Point oCurrentMouseLocation ) : Rect

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CreateMarqueeRectangle() protected method

protected CreateMarqueeRectangle ( Point oCurrentMouseLocation ) : Rect
oCurrentMouseLocation Point
return System.Windows.Rect

CreateVisual() public method

public CreateVisual ( Point currentMouseLocation, Color backgroundContrastColor ) : Visual
currentMouseLocation Point
backgroundContrastColor Color
return Visual

DraggedMarquee() public method

Initializes a new instance of the DraggedMarquee class.
public DraggedMarquee ( 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_oMarqueeRectangle protected_oe property

protected Rect,System.Windows m_oMarqueeRectangle
return System.Windows.Rect