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
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
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