#include <ChartBalloonLabel.h>
Public Member Functions | |
void | SetBackgroundColor (COLORREF colBackground) |
Sets the background color of the text area. | |
COLORREF | GetBackgroundColor () const |
Retrieves the background color of the text area. | |
void | SetLineColor (COLORREF colArrow) |
Sets the color of the line connecting the point to the text area. | |
COLORREF | GetLineColor () const |
Retrieves the color of the line connecting the point to the text area. | |
void | SetBorderColor (COLORREF colBorder) |
Sets the color of border's text area. | |
COLORREF | GetBorderColor () const |
Retrieves the color of border's text area. | |
void | SetRoundedRect (bool bRounded) |
Specifies if the text area is rounded or not. | |
bool | GetRoundedRect () const |
Returns true if the text area is rounded. | |
void | SetFont (int nPointSize, const TChartString &strFaceName) |
Sets the font of the text. | |
void | SetFont (const CChartFont &newFont) |
Sets the font of the text. | |
CChartBalloonLabel (CChartCtrl *pParentCtrl, CChartSerieBase< PointType > *pParentSeries) | |
Constructor. | |
~CChartBalloonLabel () | |
Destructor. | |
Protected Member Functions | |
void | Draw (CDC *pDC, unsigned uPointIndex) |
Draw the label. |
A balloon label is a label with a rounded rectangle area in which the text is displayed and which is connected with a line to the point to which it is attached.
void CChartBalloonLabel< PointType >::SetFont | ( | const CChartFont & | newFont | ) | [inline] |
Sets the font of the text.
This function allows to set extended font style by passing a CChartFont object.
newFont | The new font. |
void CChartBalloonLabel< PointType >::SetFont | ( | int | nPointSize, | |
const TChartString & | strFaceName | |||
) | [inline] |
Sets the font of the text.
nPointSize | The font point size. | |
strFaceName | The font face name ("Times New Roman", "Arial", ...) |
Reimplemented from CChartLabel< PointType >.