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

Represents one or more vertices that might be dragged with the mouse.
Create an instance of this class when a vertex is clicked. When the mouse is moved, check MouseDrag.OnMouseMove to determine whether the mouse has moved far enough to begin a vertex drag. If returns true, call to create a Visual to represent the dragged vertices.

Call CancelDrag if the user wants to cancel the drag operation.

Call RemoveMetadataFromVertices when the drag operation completes or is cancelled.

Inheritance: MouseDragWithVisual
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_aoVertices IVertex[]

Méthodes publiques

Méthode Description
AssertValid ( ) : void
CancelDrag ( ) : void
CreateVisual ( Point currentMouseLocation, Color backColor, VertexDrawer vertexDrawer ) : Visual
DraggedVertices ( IVertex vertices, Point mouseDownLocation, Rect graphRectangle, Int32 margin ) : System

Initializes a new instance of the DraggedVertices class.

RemoveMetadataFromVertices ( ) : void

Méthodes protégées

Méthode Description
AddMetadataToVertices ( ) : void
GetOriginalVertexLocation ( IVertex oVertex ) : System.Drawing.PointF

Method Details

AddMetadataToVertices() protected méthode

protected AddMetadataToVertices ( ) : void
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CancelDrag() public méthode

public CancelDrag ( ) : void
Résultat void

CreateVisual() public méthode

public CreateVisual ( Point currentMouseLocation, Color backColor, VertexDrawer vertexDrawer ) : Visual
currentMouseLocation Point
backColor Color
vertexDrawer VertexDrawer
Résultat Visual

DraggedVertices() public méthode

Initializes a new instance of the DraggedVertices class.
public DraggedVertices ( IVertex vertices, Point mouseDownLocation, Rect graphRectangle, Int32 margin ) : System
vertices IVertex /// An array of one or more vertices being dragged. ///
mouseDownLocation Point /// Location where the vertex was clicked, in client coordinates. ///
graphRectangle System.Windows.Rect /// The graph rectangle. ///
margin System.Int32 /// The graph margin. ///
Résultat System

GetOriginalVertexLocation() protected méthode

protected GetOriginalVertexLocation ( IVertex oVertex ) : System.Drawing.PointF
oVertex IVertex
Résultat System.Drawing.PointF

RemoveMetadataFromVertices() public méthode

public RemoveMetadataFromVertices ( ) : void
Résultat void

Property Details

m_aoVertices protected_oe property

protected IVertex[] m_aoVertices
Résultat IVertex[]