C# 클래스 Smrf.NodeXL.Visualization.Wpf.VertexDrawingHistory

Retains information about how one vertex was drawn.
This is an abstract base class. There is one concrete derived class for each type of vertex that can be drawn. The derived classes must implement the GetEdgeEndpoint, GetSelfLoopEndpoint, and GetLabelLocation methods.
상속: DrawingHistory
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_oVertex IVertex

공개 메소드들

메소드 설명
AssertValid ( ) : void
GetEdgeEndpoint ( Point otherEndpoint, Point &edgeEndpoint ) : void
GetLabelLocation ( VertexLabelPosition labelPosition ) : Point
GetSelfLoopEndpoint ( RectangleEdge farthestGraphRectangleEdge ) : Point
VertexDrawingHistory ( IVertex vertex, System.Windows.Media.DrawingVisual drawingVisual, System.Boolean drawnAsSelected ) : System

Initializes a new instance of the VertexDrawingHistory class.

보호된 메소드들

메소드 설명
GetBoundingSquare ( Double dHalfWidth ) : Rect
GetEdgeEndpointOnCircle ( Point oVertexALocation, Double dVertexARadius, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
GetEdgeEndpointOnRectangle ( Point oVertexALocation, Rect oVertexARectangle, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
GetLabelLocationOnDiamond ( VertexLabelPosition eLabelPosition, Double dHalfWidth ) : Point
GetSelfLoopEndpointOnRectangle ( Rect oVertexRectangle, RectangleEdge eFarthestGraphRectangleEdge ) : Point

메소드 상세

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

GetBoundingSquare() 보호된 메소드

protected GetBoundingSquare ( Double dHalfWidth ) : Rect
dHalfWidth Double
리턴 System.Windows.Rect

GetEdgeEndpoint() 공개 추상적인 메소드

public abstract GetEdgeEndpoint ( Point otherEndpoint, Point &edgeEndpoint ) : void
otherEndpoint Point
edgeEndpoint Point
리턴 void

GetEdgeEndpointOnCircle() 보호된 메소드

protected GetEdgeEndpointOnCircle ( Point oVertexALocation, Double dVertexARadius, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
oVertexALocation Point
dVertexARadius Double
oVertexBLocation Point
oEdgeEndpoint Point
리턴 void

GetEdgeEndpointOnRectangle() 보호된 메소드

protected GetEdgeEndpointOnRectangle ( Point oVertexALocation, Rect oVertexARectangle, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
oVertexALocation Point
oVertexARectangle System.Windows.Rect
oVertexBLocation Point
oEdgeEndpoint Point
리턴 void

GetLabelLocation() 공개 추상적인 메소드

public abstract GetLabelLocation ( VertexLabelPosition labelPosition ) : Point
labelPosition VertexLabelPosition
리턴 Point

GetLabelLocationOnDiamond() 보호된 메소드

protected GetLabelLocationOnDiamond ( VertexLabelPosition eLabelPosition, Double dHalfWidth ) : Point
eLabelPosition VertexLabelPosition
dHalfWidth Double
리턴 Point

GetSelfLoopEndpoint() 공개 추상적인 메소드

public abstract GetSelfLoopEndpoint ( RectangleEdge farthestGraphRectangleEdge ) : Point
farthestGraphRectangleEdge RectangleEdge
리턴 Point

GetSelfLoopEndpointOnRectangle() 보호된 메소드

protected GetSelfLoopEndpointOnRectangle ( Rect oVertexRectangle, RectangleEdge eFarthestGraphRectangleEdge ) : Point
oVertexRectangle System.Windows.Rect
eFarthestGraphRectangleEdge RectangleEdge
리턴 Point

VertexDrawingHistory() 공개 메소드

Initializes a new instance of the VertexDrawingHistory class.
public VertexDrawingHistory ( IVertex vertex, System.Windows.Media.DrawingVisual drawingVisual, System.Boolean drawnAsSelected ) : System
vertex IVertex /// The vertex that was drawn. ///
drawingVisual System.Windows.Media.DrawingVisual /// The DrawingVisual object that was used to draw the vertex. ///
drawnAsSelected System.Boolean /// true if the vertex was drawn as selected. ///
리턴 System

프로퍼티 상세

m_oVertex 보호되어 있는 프로퍼티

protected IVertex m_oVertex
리턴 IVertex