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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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[]