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

Draws a vertex label as an annotation.
This class draws a label next to a vertex, as an annotation. It does NOT draw vertices that have the shape VertexShape.Label.
상속: DrawerBase
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_btBackgroundAlpha Byte
m_eLabelPosition VertexLabelPosition

공개 메소드들

메소드 설명
AssertValid ( ) : void
DrawLabel ( System.Windows.Media.DrawingContext drawingContext, GraphDrawingContext graphDrawingContext, VertexDrawingHistory vertexDrawingHistory, System.Windows.Media.FormattedText formattedText, Color formattedTextColor ) : void
DrawLabel ( System.Windows.Media.DrawingContext drawingContext, GraphDrawingContext graphDrawingContext, VertexDrawingHistory vertexDrawingHistory, VertexLabelPosition labelPosition, System.Windows.Media.FormattedText formattedText, Color formattedTextColor, System.Boolean drawBackground ) : void
VertexLabelDrawer ( VertexLabelPosition labelPosition, Byte backgroundAlpha ) : System

Initializes a new instance of the VertexLabelDrawer class.

보호된 메소드들

메소드 설명
AdjustForTextAlignment ( Double dLabelWidth, Double dLabelHeight, VertexLabelPosition eLabelPosition, System.Windows.Media.FormattedText oFormattedText, Double &dDrawX, Double &dDrawY, Double &dLabelBoundsLeft, Double &dLabelBoundsRight ) : void
GetLabelPosition ( IVertex oVertex ) : VertexLabelPosition
SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void
StayWithinHorizontalBounds ( Double dX, GraphDrawingContext oGraphDrawingContext, Double dLabelBoundsLeft, Double dLabelBoundsRight ) : Double
StayWithinVerticalBounds ( Double dY, GraphDrawingContext oGraphDrawingContext, Double dLabelBoundsTop, Double dLabelBoundsBottom ) : Double

메소드 상세

AdjustForTextAlignment() 보호된 메소드

protected AdjustForTextAlignment ( Double dLabelWidth, Double dLabelHeight, VertexLabelPosition eLabelPosition, System.Windows.Media.FormattedText oFormattedText, Double &dDrawX, Double &dDrawY, Double &dLabelBoundsLeft, Double &dLabelBoundsRight ) : void
dLabelWidth Double
dLabelHeight Double
eLabelPosition VertexLabelPosition
oFormattedText System.Windows.Media.FormattedText
dDrawX Double
dDrawY Double
dLabelBoundsLeft Double
dLabelBoundsRight Double
리턴 void

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

DrawLabel() 공개 메소드

public DrawLabel ( System.Windows.Media.DrawingContext drawingContext, GraphDrawingContext graphDrawingContext, VertexDrawingHistory vertexDrawingHistory, System.Windows.Media.FormattedText formattedText, Color formattedTextColor ) : void
drawingContext System.Windows.Media.DrawingContext
graphDrawingContext GraphDrawingContext
vertexDrawingHistory VertexDrawingHistory
formattedText System.Windows.Media.FormattedText
formattedTextColor Color
리턴 void

DrawLabel() 공개 메소드

public DrawLabel ( System.Windows.Media.DrawingContext drawingContext, GraphDrawingContext graphDrawingContext, VertexDrawingHistory vertexDrawingHistory, VertexLabelPosition labelPosition, System.Windows.Media.FormattedText formattedText, Color formattedTextColor, System.Boolean drawBackground ) : void
drawingContext System.Windows.Media.DrawingContext
graphDrawingContext GraphDrawingContext
vertexDrawingHistory VertexDrawingHistory
labelPosition VertexLabelPosition
formattedText System.Windows.Media.FormattedText
formattedTextColor Color
drawBackground System.Boolean
리턴 void

GetLabelPosition() 보호된 메소드

protected GetLabelPosition ( IVertex oVertex ) : VertexLabelPosition
oVertex IVertex
리턴 VertexLabelPosition

SetTextAlignment() 보호된 메소드

protected SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void
oFormattedText System.Windows.Media.FormattedText
eLabelPosition VertexLabelPosition
리턴 void

StayWithinHorizontalBounds() 보호된 메소드

protected StayWithinHorizontalBounds ( Double dX, GraphDrawingContext oGraphDrawingContext, Double dLabelBoundsLeft, Double dLabelBoundsRight ) : Double
dX Double
oGraphDrawingContext GraphDrawingContext
dLabelBoundsLeft Double
dLabelBoundsRight Double
리턴 Double

StayWithinVerticalBounds() 보호된 메소드

protected StayWithinVerticalBounds ( Double dY, GraphDrawingContext oGraphDrawingContext, Double dLabelBoundsTop, Double dLabelBoundsBottom ) : Double
dY Double
oGraphDrawingContext GraphDrawingContext
dLabelBoundsTop Double
dLabelBoundsBottom Double
리턴 Double

VertexLabelDrawer() 공개 메소드

Initializes a new instance of the VertexLabelDrawer class.
public VertexLabelDrawer ( VertexLabelPosition labelPosition, Byte backgroundAlpha ) : System
labelPosition VertexLabelPosition /// The default position to use for vertex labels. ///
backgroundAlpha Byte /// The alpha of the label's background rectangle, as a Byte. ///
리턴 System

프로퍼티 상세

m_btBackgroundAlpha 보호되어 있는 프로퍼티

protected Byte m_btBackgroundAlpha
리턴 Byte

m_eLabelPosition 보호되어 있는 프로퍼티

protected VertexLabelPosition m_eLabelPosition
리턴 VertexLabelPosition