Property | Type | Description | |
---|---|---|---|
m_btBackgroundAlpha | Byte | ||
m_eLabelPosition | VertexLabelPosition |
Method | Description | |
---|---|---|
AssertValid ( ) : void | ||
DrawLabel ( System.Windows.Media.DrawingContext drawingContext, |
||
DrawLabel ( System.Windows.Media.DrawingContext drawingContext, |
||
VertexLabelDrawer ( VertexLabelPosition labelPosition, Byte backgroundAlpha ) : System |
Initializes a new instance of the VertexLabelDrawer class.
|
Method | Description | |
---|---|---|
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, |
||
StayWithinVerticalBounds ( Double dY, |
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 | |
return | void |
public DrawLabel ( System.Windows.Media.DrawingContext drawingContext, |
||
drawingContext | System.Windows.Media.DrawingContext | |
graphDrawingContext | ||
vertexDrawingHistory | ||
formattedText | System.Windows.Media.FormattedText | |
formattedTextColor | Color | |
return | void |
public DrawLabel ( System.Windows.Media.DrawingContext drawingContext, |
||
drawingContext | System.Windows.Media.DrawingContext | |
graphDrawingContext | ||
vertexDrawingHistory | ||
labelPosition | VertexLabelPosition | |
formattedText | System.Windows.Media.FormattedText | |
formattedTextColor | Color | |
drawBackground | System.Boolean | |
return | void |
protected GetLabelPosition ( IVertex oVertex ) : VertexLabelPosition | ||
oVertex | IVertex | |
return | VertexLabelPosition |
protected SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void | ||
oFormattedText | System.Windows.Media.FormattedText | |
eLabelPosition | VertexLabelPosition | |
return | void |
protected StayWithinHorizontalBounds ( Double dX, |
||
dX | Double | |
oGraphDrawingContext | ||
dLabelBoundsLeft | Double | |
dLabelBoundsRight | Double | |
return | Double |
protected StayWithinVerticalBounds ( Double dY, |
||
dY | Double | |
oGraphDrawingContext | ||
dLabelBoundsTop | Double | |
dLabelBoundsBottom | Double | |
return | Double |
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. /// |
return | System |