Свойство | Тип | Описание | |
---|---|---|---|
m_btBackgroundAlpha | Byte | ||
m_eLabelPosition | VertexLabelPosition |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public DrawLabel ( System.Windows.Media.DrawingContext drawingContext, |
||
drawingContext | System.Windows.Media.DrawingContext | |
graphDrawingContext | ||
vertexDrawingHistory | ||
formattedText | System.Windows.Media.FormattedText | |
formattedTextColor | Color | |
Результат | 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 | |
Результат | void |
protected GetLabelPosition ( IVertex oVertex ) : VertexLabelPosition | ||
oVertex | IVertex | |
Результат | VertexLabelPosition |
protected SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void | ||
oFormattedText | System.Windows.Media.FormattedText | |
eLabelPosition | VertexLabelPosition | |
Результат | void |
protected StayWithinHorizontalBounds ( Double dX, |
||
dX | Double | |
oGraphDrawingContext | ||
dLabelBoundsLeft | Double | |
dLabelBoundsRight | Double | |
Результат | Double |
protected StayWithinVerticalBounds ( Double dY, |
||
dY | Double | |
oGraphDrawingContext | ||
dLabelBoundsTop | Double | |
dLabelBoundsBottom | Double | |
Результат | 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. /// |
Результат | System |