C# Класс 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.

Наследование: MouseDragWithVisual
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_aoVertices IVertex[]

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
AddMetadataToVertices ( ) : void
GetOriginalVertexLocation ( IVertex oVertex ) : System.Drawing.PointF

Описание методов

AddMetadataToVertices() защищенный Метод

protected AddMetadataToVertices ( ) : void
Результат void

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

CancelDrag() публичный Метод

public CancelDrag ( ) : void
Результат void

CreateVisual() публичный Метод

public CreateVisual ( Point currentMouseLocation, Color backColor, VertexDrawer vertexDrawer ) : Visual
currentMouseLocation Point
backColor Color
vertexDrawer VertexDrawer
Результат Visual

DraggedVertices() публичный Метод

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. ///
Результат System

GetOriginalVertexLocation() защищенный Метод

protected GetOriginalVertexLocation ( IVertex oVertex ) : System.Drawing.PointF
oVertex IVertex
Результат System.Drawing.PointF

RemoveMetadataFromVertices() публичный Метод

public RemoveMetadataFromVertices ( ) : void
Результат void

Описание свойств

m_aoVertices защищенное свойство

protected IVertex[] m_aoVertices
Результат IVertex[]